C++ What is class inheritance? [1]

preview_player
Показать описание
A brief introduction to inheritance, the "is a" relationship, and the terminology.

Learn through writing a sample class in this C++ tutorial for beginners written with Visual Studio 2022 C++ .

// Join the new Programming for Everyone Community Forum:

// Learn More //
The Inheritance, Polymorphism,and Virtual Functions play list:

// Consider supporting this channel in multiple ways
Bitcoin: 177wfkQwzXiC8o2whQMVpSyuWUs95krKYB
Рекомендации по теме
Комментарии
Автор

I don't get it? I find information that you don't have access to the private variables from the parent class in a child class. How can you then use the function setX(), which uses x whom is private in Foo?

chompa
Автор

Hi please why you don't use protected attributs

AlexTrouman-oiyp