Forum

Polymorphism in C++ Programming

This thread contains 2 replies, has 3 voices, and was last updated by ananyagupta1214 4 years, 10 months ago.

  • Author Replies
    • #57690

      What Are The Different Types of Polymorphism in C++ Programming?


    • #57691

      Hello,

      Polymorphism means various forms.,

      The concept behind the Polymorphism means having more than one function with the same function name with various functionalities.

      There are two types of polymorphism in C++

      1) Compile time Polymorphism – This is also known as static polymorphism or early binding.

      Example of Compile time polymorphism

      (i) Function Overloading
      (ii) Operator Overloading

      2) Runtime Polymorphism – This is also known as dynamic polymorphism or late binding.

      Example of Runtime polymorphism

      (i) Function Overriding


    • #57918

      The word polymorphism means having many forms that occur when there is a hierarchy of classes that are related by inheritance. C++ polymorphism means that a call to a member function which causes a different function will be executed depending on the type of object that invokes the function. For more visit: http://www.cetpainfotech.com/technology/C-Language-Training


      Attachments (Allowed file type: .jpg, .jpeg, .png, .pdf):
      You must be logged in to view attached files.
Viewing 2 reply threads

You must be to reply to this thread.Please or . Registration is 100% free.

GET FREE CONSULTATION

Call Us Now For Free Consultation97370 05566

Our experts listen to you patiently and suggest you the right course after conducting a personality profile test. Register your interest below to schedule personality profile test for you.

SUBSCRIBE TO OUR NEWSLETTER

Copyright 2016-2024 Smart Mentors. All Rights Reserved.

Login

FORGOT PASSWORD

Sign up now to Become An Instructor

    Register your Interest

      cf7captchaRegenerate Captcha