Где искать: по сайтам Запорожской области, статьи, видео ролики
пример: покупка автомобиля в Запорожье
The word “polymorphism” means to have many forms.
Polymorphism usually occurs when we have multiple classes that are related by inheritance. Because of this, two derived classes can define a method that has the same name, but the different implementation (behavior)
In this video, I’m providing a simple explanation and example of what I mentioned above.
This is a very understandable and simple explanation, that I found on the internet, and I want to share it with you:
If you ask a question like “What is a set?” in the forum topic “Tennis”, you’ll get one answer and if the forum topic is “Data structures” you’ll get an entirely different answer. That’s because the people who read these two topics process the same question in different ways. This is basically what polymorphism does!
C++ Object-Oriented Programming playlist:
https://youtu.be/iVLQeWbgbXs - Introduction to OOP
https://youtu.be/1LGJSRFrxqQ - Constructors and class methods
https://youtu.be/a8ZB-TPB6EU - Encapsulation
https://youtu.be/-W-TYjL0aFE - Inheritance
If you are a beginner in C++, check out my “C++ for beginners” course: https://www.youtube.com/watch?v=iBG0fN8lY8Y&list=PL43pGnjiVwgQHLPnuH9ch-LhZdwckM8Tq
and “C++ functions” course:
https://www.youtube.com/watch?v=BGmDRQzY4CA&list=PL43pGnjiVwgRggnsJcz1cK0j7b2-kLML_
We’ll be writing C++ code using Visual Studio 2019 Comunity.
Link for download: https://visualstudio.microsoft.com/vs/
Follow me on other platforms:
Instagram ???? - https://www.instagram.com/truecodebeauty/
Twitter ????- https://twitter.com/TrueCodeBeauty
*******Initial code is available in COMMENTS and on TrueCodeBeauty GIT*******
https://github.com/TrueCodeBeauty/PolymorphismCpp.git