Learn How to Use Abstract Classes

Learn How to Use Abstract Classes

Amigoscode

2 года назад

67,159 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Cesar Hinojosa
Cesar Hinojosa - 23.09.2023 20:50

I was so annoyed at being taught complex design patters and design principles with squares, circles, apples, bananas, etc. Thank you for this very helpful example!

Ответить
Dan
Dan - 15.07.2023 22:03

This is a great explanation, thank you so much!

Ответить
June Collin
June Collin - 13.06.2023 02:51

Thanks for going further than the "Animal" "Shape" stuff. I never understood how to "Actually" do it with those examples.

Ответить
iNooBBeYT
iNooBBeYT - 31.05.2023 06:16

Can make video on method return abstract class ?

Ответить
Bakre_Dev
Bakre_Dev - 27.05.2023 11:10

Ответить
Mompati Keetile
Mompati Keetile - 15.05.2023 16:03

This is a gem.

Ответить
autoexec
autoexec - 26.04.2023 20:42

Brilliant! :)

Ответить
Sayyed Muaaz
Sayyed Muaaz - 12.03.2023 10:23

But what is the difference between polymorphism and abstract classes then? Are they serving the same goal?

Ответить
Erick Shaffer
Erick Shaffer - 04.02.2023 21:26

Says he won't do the typical animal example. Proceeds to do exactly that

Ответить
mikesbiking
mikesbiking - 31.01.2023 22:27

Instead of making the clean() abstract, would it be better to implement it to return unmodified value. That way existing classes don't need to be modified with clean if it's not needed?

Ответить
Mudassir Khan
Mudassir Khan - 15.01.2023 10:25

Wa alaikum Salam.

Ответить
Lazar Otasevic
Lazar Otasevic - 27.12.2022 13:03

just dont use them

Ответить
Julian Collazos
Julian Collazos - 04.11.2022 00:41

Why don't use interfaces ?

Ответить
Tarek KHIREDDINE
Tarek KHIREDDINE - 21.08.2022 16:13

very clean, machallah

Ответить
Ravi Enu
Ravi Enu - 19.08.2022 04:05

Hi @Amigoscode, I have been following your content for quite long. It's really incredible work you are doing to help all of us. Thank you very much. And I always face challenge in understanding the existing code (mostly I work on Java) when I am moving across new projects. I really appreciate if you can prepare a video on how to understand existing code base of JAVA. Thank you once again.

Ответить
Travis Whitten
Travis Whitten - 21.07.2022 19:35

Why make the PATTERN static?

Ответить
KangoV
KangoV - 11.07.2022 14:11

Only subclass if the phrase "is type of" is true. Also, keep this in your head whenever you are designing..,.. "prefer composition over inheritance" and you'll not go far wrong. Also remember a class should only do ONE thing and do that thing well. As soon as you start mixing concerns, your class becomes needlessly complex and breaks the Single Responsibility Principle.

Ответить
Dairon Pérez Frías
Dairon Pérez Frías - 29.06.2022 18:38

Thanks for all your content, from Cuba !!!

Ответить