Загрузка...

Polymorphism in c++

#polymorphism in C++ is one of the core concepts of Object-Oriented Programming (OOP), and it allows objects to be treated as instances of their parent class rather than their actual class. It enables a single function or method to behave differently based on the object that calls it.

There are two main types of polymorphism in C++:

1. Compile-Time Polymorphism (Static Binding)
Achieved through:
- Function Overloading: Same function name with different parameters.
- Operator Overloading: Redefining operators for user-defined types

2. Run-Time Polymorphism (Dynamic Binding)
Achieved through:
- Inheritance + Virtual Functions..

Видео Polymorphism in c++ канала Easy to Learn Technical Skills
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять