Java IS-A vs. HAS-A Relationship Between Classes - Inheritance Example - APPFICIAL

preview_player
Показать описание
Inheritance creates an is-a relationship. For example, a Tesla is a Car.

Classes where an instance variable is an object of another class creates a has-a relationship. For example, a Car has a Stereo

Subscribe!
Рекомендации по теме
Комментарии
Автор

1:50 so nonchalantly described Bob LMAO. Tis a good video

justinmorgan
Автор

audio is a little funky but the content is good and you explained it well

GreyA
Автор

Please SUBSCRIBE! More programming videos coming soon! ✌️

Appficial
Автор

Why aren't the setters and getters in the book class?

Martin-xxkw
join shbcf.ru