मराठी

______ is a mechanism to achieve run time polymorphism.

Advertisements

प्रश्न

______ is a mechanism to achieve run time polymorphism. 

पर्याय

  • Operator Overloading

  • Virtual Function

  • Function Overloading

  • Constructor

MCQ
रिकाम्या जागा भरा
Advertisements

उत्तर

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
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
2023-2024 (March) Official
Advertisements
Share
Notifications



      Forgot password?
Use app×