The word polymorphism means having many forms. Typically, polymorphism occurs when there is a hierarchy of classes and they are related by inheritance.
C++ polymorphism means that a call to a member function will cause a different function to be executed depending on the type of object that invokes the function.
The reason for the incorrect output is that the call of the function area() is being set once by the compiler as the version defined in the base class. This is called static resolution of the function call, or static linkage – the function call is fixed before the program is executed. This is also sometimes called early binding because the area() function is set during the compilation of the program.
But now, let’s make a slight modification in our program and precede the declaration of area() in the Shape class with the keyword virtual
So we can do it all. First and important thing Techy gives money back guarantee for the work and second thing delivery on time with quality :), You can check our portfolio, reviews with Best rating 🙂 . Yes we have a team of professionals with 7 years of experience in Software industry 🙂 Been awarded as outstanding Consultant award by latest client. So What are you thinking it’s a win win We are covering everything from money to work which no other company can do. JUST Call us at (718)-502-9088.OR JUST contect us to our wonderful customer support & sales team at www.techyusa.com .