C++ Abstract base classes and pure virtual functions [7]
Автор: Professor Hank Stalica
Загружено: 25 апр. 2023 г.
Просмотров: 11 851 просмотр
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 Virtu...
// Consider supporting this channel in multiple ways:
patreon.com/TheProfessorHank
https://ko-fi.com/professorhank
https://wise.com/pay/me/henrys814
https://paypal.me/hankstalica1
Bitcoin: 177wfkQwzXiC8o2whQMVpSyuWUs95krKYB
![C++ Abstract base classes and pure virtual functions [7]](https://ricktube.ru/thumbnail/rECcII1Mdfc/hq720.jpg)
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: