Advertisements
Advertisements
प्रश्न
______ is a mechanism to achieve run time polymorphism.
विकल्प
Operator Overloading
Virtual Function
Function Overloading
Constructor
MCQ
रिक्त स्थान भरें
उत्तर
Virtual Function is a mechanism to achieve run time polymorphism.
Explanation:
Runtime polymorphism can be achieved in object-oriented programming (OOP) through the use of virtual functions. A vtable (virtual table) is used at runtime to resolve the function call when a base class designates a function as virtual, allowing derived classes to override the function.
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?