C++ Abstract base classes and pure virtual functions [7]

Описание к видео C++ Abstract base classes and pure virtual functions [7]

You cannot create an instance of an abstract base class, but you can create other classes that are derived from it. A pure virtual function is a virtual member function that belongs to a base class and needs to be redefined in derived classes. When a class has a pure virtual function as a member, it becomes an abstract base class.

Learn how this works through writing sample classes in this C++ tutorial for beginners written with Visual Studio 2022 C++ .

// Join the new Programming for Everyone Community Forum:
https://professorhank.freeforums.net/

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

// Consider supporting this channel in multiple ways
https://paypal.me/hankstalica1
Bitcoin: 177wfkQwzXiC8o2whQMVpSyuWUs95krKYB

Комментарии

Информация по комментариям в разработке