In 10 carts

Price: ₹ 277.000

Original Price: ₹ 827.000

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

Polymorphism in c++: There's no intrinsic support

You can only make an offer when buying a single item

Add to cart

There's no intrinsic support for polymorphism in C, but there are design patterns, using function pointers, base 'class' (structure) casts, etc., that can provide a logical equivalent of dynamic dispatch. Also known as early binding and static polymorphism, in compile-time polymorphism, the compiler determines how the function or operator will work depending on the context. In this tutorial, you will learn the basics of Polymorphism in C++, including its definition, types, and implementation details. 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

(27589 reviews)

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