C++ Programming For Beginners - 5: Class Inheritance.

preview_player
Показать описание
In this episode I will explain to you what Class Inheritance is in C++.

I thank you for watching this video!
Рекомендации по теме
Комментарии
Автор

Wow Class inheritance is actually very fun to work with! :D So this is how Weapons are made in almost every game I guess: "class Shotgun : Gun"... etc. Thank you for these awesome tutorials they are really fun to follow. Subscribed and liked!

sebbsubb
Автор

Well, it doesn't work for me when I create 2 classes inherited from the Animal class, even though I included the Snake.h and Dog.h in my main function, it gives me and error, but if I call only 1 class (dog.makeSound()) works fine, and if I call the other one: snake.makeSound() it also works, but together is impossible.

andreiasimov
visit shbcf.ru