Java extends vs implements (fastest tutorial on the internet ^_^)

preview_player
Показать описание

Opinion is divided on this. It's either a tsunami going over your head or it's the fastest tutorial on the internet for extends vs implements and I just saved you 8 hours of class lectures.
Рекомендации по теме
Комментарии
Автор

This is like a tsunami, just going over my head

arashaadd
Автор

Rename video to "FASTEST JAVA TUTORIAL FOR EXTENDS VS IMPLEMENTS"

manuelanunez
Автор

Hats off to the way you explained the difference, was looking for it overall and finally landed on this. Thanks a lot.

aayushshah
Автор

thanks for summarizing 8 hours of my class lecture

jshda
Автор

Well thought out series of videos. Keep it coming!

apoozeo
Автор

Very simple way to understand these concepts, thanks :D

ana.
Автор

What I like the most was the fact that you used right click to do most of it.

NourAli-hlih
Автор

thanks for that explanation. So it seems if I look at a normal class seen from C++, we have a header file and cpp implementation file. The header file is basically the definition while the cpp is the implementation.
The definition is pretty much the same thing as what gets created as the "contract" in the interface without the implementation
So using an interface is kind of like creating a class without implementing it.
The implementation happens in the file you are using it in.
Thanks

SpencerDavis
Автор

The only thing missing from the video is an explanation on when extend the class vs using an interface

scarswell
Автор

So if Java supports multiple-inheritance, it wouldn't need to invent implements?

BryanChance
Автор

Pretty understandable example, thank you very much

mfsoftware
Автор

That was a great explanation thank you!

MrDavidjRay
Автор

simple and clear. easy to understand! thanks a lot!

ninow
Автор

bro what if we use enum under animals, will that be called as a good practice?

VaibhavPandita
Автор

Why do you need getters and setters if you are using public variables?

andrija.radica
Автор

So am I'm right that I can extend a class and only one class sharing the code with it and I can implement interfaces having to implement contracted methods?
Does it make sense to implement class instead of interface?

swojchwat
Автор

I feel like apart of coding is spending hours on end on an topic trying to understand it and when you revisit that topic you'll able to pick it up within minutes???

dreful
Автор

I still don't understand why we do that. In c++ we have h files where we declare methods and classes, than we create a cpp file and initiliase these methods and classes and than extend it in the main file. I still don't understand why we create a interface and override it in a nother class. This confused me all the time, but i think i even don't understand this technic in c++

Scorpion-oo
Автор

It does not make sense to have getters and setters if you are going to set variables as public. Thanks for the explanation.

cheke
Автор

thank you this really helped me out. finally.

abalgaebroccoli
join shbcf.ru