C++ Inheritance: constructors and destructors in base and derived classes [3]

preview_player
Показать описание
Let's talk about constructors and destructors in base and derived classes within the context of inheritance in C++. We'll talk about:

the order in which they execute
how to call the base class constructor
how to inherit constructors

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
Рекомендации по теме
Комментарии
Автор

one question why we use a private access specifier when inheriting the base constructor 7:58 ??

lgt
Автор

most underratted proff. Love ur vids <3

archivvithlani
Автор

Hi, could I inherit a constructor using this ? class Derived : public Base :: Base()

anlpereira