filmov
tv
C++ OOP - What is polymorphism in programming? (simple example)
Показать описание
📚 Learn how to solve problems and build projects with these Free E-Books ⬇️
Experience the power of practical learning, gain career-ready skills, and start building real applications!
This is a step-by-step course designed to take you from beginner to expert in no time!
💰 Here is a coupon to save 10% on your first payment (CODEBEAUTY_YT10).
Use it quickly, because it will be available for a limited time.
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:
C++ functions course:
Follow me on other platforms:
*******Initial code is available in COMMENTS and on TrueCodeBeauty GIT*******
Experience the power of practical learning, gain career-ready skills, and start building real applications!
This is a step-by-step course designed to take you from beginner to expert in no time!
💰 Here is a coupon to save 10% on your first payment (CODEBEAUTY_YT10).
Use it quickly, because it will be available for a limited time.
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:
C++ functions course:
Follow me on other platforms:
*******Initial code is available in COMMENTS and on TrueCodeBeauty GIT*******
Комментарии