Pavan Ramamurthy
Different Types of Polymorphism
By Pavan Ramamurthy in C, C++, MFC on Aug 21 2013
  • Pavan Ramamurthy
    Aug, 2013 21

    • OverLoading
    • OverRiding

    • 2
  • Neha Kumari
    Nov, 2017 5

    Static polymorphism example:function overloading,function overriding,constructor overloading. Dynamic polymorphism example : virtual function

    • 1
  • Ashish Srivastava
    Apr, 2016 22

    Polymorphism is mainly 2 type : 1) Run Time 2) Compile Time

    • 1
  • Rahul Prajapat
    Jun, 2015 10

    Polymorphism is mainly 2 type : 1) Run Time polymorphism: a) Virtual function2) Compile Time Polymorphism : a) function overloadingb) operator overloadingCompile time polymorphism is used for Function overloadingRuntime is used for implementing virtual functions,overriding etc

    • 1
  • Munesh Sharma
    Feb, 2015 14

    http://www.catonmat.net/blog/cpp-polymorphism/

    • 1
  • Munesh Sharma
    Feb, 2015 14

    http://www.aspdotnet-suresh.com/2013/09/polymorphism-in-c-with-example-types-of-polymorphism.html

    • 1
  • ponveni
    Sep, 2013 12

    Polymorphis -------------------- Polymorphism means ability to take more than one form. Polymorphism is mainly divided into : 1) Run Time polymorphism: a) Virtual function 2) Compile Time Polymorphism : a) function overloading b) operator overloading Compile time polymorphism is used for Function overloading Runtime is used for implementing virtual functions,overriding etc Overloading: is an example of compile time polymorphism.(Because the function to call is decide at compile time) example: Math math=Math(); math.add(10,20) math.add(10,20,30) Overriding: an example of compile time polymorphism.(Because the function to call is decide at runtime) example: superclassObject.add(10,10) subclassObject.add(10,10) Here in the case of Overriding the method which will call is decide will decide at the runtime.

    • 1


Most Popular Job Functions


MOST LIKED QUESTIONS