Professor Hank Stalica | C++ Abstract base classes and pure virtual functions [7] @ProfessorHankStalica | Uploaded 1 year ago | Updated 3 hours ago
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:
https://www.youtube.com/playlist?list=PLaatXkJEXKyKlx6H44MbV2d63AmudD5sd
// Consider supporting this channel in multiple ways
https://paypal.me/hankstalica1
Bitcoin: 177wfkQwzXiC8o2whQMVpSyuWUs95krKYB
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:
https://www.youtube.com/playlist?list=PLaatXkJEXKyKlx6H44MbV2d63AmudD5sd
// Consider supporting this channel in multiple ways
https://paypal.me/hankstalica1
Bitcoin: 177wfkQwzXiC8o2whQMVpSyuWUs95krKYB