Где искать: по сайтам Запорожской области, статьи, видео ролики
пример: покупка автомобиля в Запорожье
In this Object-Oriented Programming course, I’m explaining the relationship and purpose of virtual functions, pure virtual functions, and abstract classes.
C++ Virtual functions are functions defined in the base class and redefined in the derived class, whose main purpose is achieving runtime-polymorphism. Virtual functions are defined with the “virtual” keyword in the base class. You can find a detailed explanation and an example in this video, and I’ll also show you how the runtime polymorphism achieved by using virtual functions looks like.
Pure virtual functions in C++ (abstract function) in C++ is a virtual function for which we don’t write implementation in the base class, but we only declare it. In order to declare a pure virtual function, you need to assign 0 in the declaration
Abstract class in C++ is a class that has at least one pure virtual function. The classes which inherit the abstract class must provide a definition for the pure virtual functions, otherwise, they would be abstract themselves and you wouldn’t be able to instantiate them.
The main purpose of an abstract class is to provide an appropriate base class from which other classes can inherit.
Contents:
00:00 - Into
01:31 - Virtual Functions
12:31 - Pure Virtual Functions and Abstract Classes
17:38 - Polymorphism example
???? Create Modern Apps, Download Your FREE C++Builder Trial Today: https://bit.ly/CppBuilderFree
???? Fun fact, on my language accordion is called “Harmonika” like the word harmony.
Accordion compositions I like: https://bit.ly/compositionsILike
My favorite composition (The Danube Waves): https://bit.ly/TheDanubeWaves
Tag me on you Instagram stories:
Instagram ???? - https://www.instagram.com/truecodebeauty/
Twitter ????- https://twitter.com/TrueCodeBeauty