Polymorphism


  • Polymorphism is a major feature of object-oriented programming.
  • By using polymorphism, you can create new objects that perform the same functions as the base object but which perform one or more of these functions in a different way.
  • Polymorphism is supported by C++ both at compile time and at run time.
  • Compile-time polymorphism is achieved by overloading functions and operators.
  • Run-time polymorphism is accomplished by using inheritance and virtual functions.


Reference Variable << Previous

Next >> Call Mechanism

Our aim is to provide information to the knowledge seekers. 


comments powered by Disqus




Footer1