Комментарии:
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!
ОтветитьThis is a great explanation, thank you so much!
ОтветитьThanks for going further than the "Animal" "Shape" stuff. I never understood how to "Actually" do it with those examples.
ОтветитьCan make video on method return abstract class ?
ОтветитьThis is a gem.
ОтветитьBrilliant! :)
ОтветитьBut what is the difference between polymorphism and abstract classes then? Are they serving the same goal?
ОтветитьSays he won't do the typical animal example. Proceeds to do exactly that
Ответить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?
ОтветитьWa alaikum Salam.
Ответитьjust dont use them
ОтветитьWhy don't use interfaces ?
Ответитьvery clean, machallah
Ответить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.
ОтветитьWhy make the PATTERN static?
Ответить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.
ОтветитьThanks for all your content, from Cuba !!!
Ответить