In 10 carts

Price: ₹ 119.000

Original Price: ₹ 791.000

50% off
New markdown! Biggest sale in 60+ days

Polymorphism in c++: In this tutorial

You can only make an offer when buying a single item

Add to cart

In this tutorial, you will learn the basics of Polymorphism in C++, including its definition, types, and implementation details. Polymorphism in C++ is an important concept of object-oriented programming, which simply means many forms. It refers to the ability of a function, variable, or object to take multiple forms when the same object or entity behaves differently in different contexts. Polymorphism can occur within classes when multiple classes are related through inheritance. So, let’s dig deeper to understand what C++ polymorphism is, its types, and examples. Polymorphism in C++ The word polymorphism means having many forms. In simple words, we can define polymorphism as the ability of a message to be displayed in more than one form. Real life example of polymorphism, a person at the same time can have different characteristic. Like a man at the same time is a father, a husband, an employee. By creating a VTable (virtual Table) and providing proper access between base and derived objects, we can achieve inheritance and polymorphism in C. The concept of VTable can be implemented by maintaining a table of pointers to functions.

4.9 out of 5

(21512 reviews)

5/5 Item quality
4/5 Shipping
4/5 Customer service
Loading