TODAY JAVA SCHOOL

In java school, programming, design, computer general knowledge, web application, software, web services, social media, digital marketing, oops, concept of programming language, oops feature, console media, graphics medium, first programming, c, c ++ , Java, PHP, SQL, MySQL, HTML, HTML_5, J_query, JavaScript, Bootstrap, Framework, images with logos, examples, shared and explained.

https://www.amazon.in/b?node=26373545031&linkCode=ll2&tag=1234567801cdb-21&linkId=3b9882431b00409b44141e0344b35a15&language=en_IN&ref_=as_li_ss_tl

Breaking

Saturday 15 August 2020

Polymorphism in C++ | Types Of Polymorphism in C++ | Example Of Polymorphism in C++ | Define Polymorphism in C++

 

Polymorphism in C++

The word polymorphism means having many forms. In simple words, we can define polymorphism as the ability of a message to be displayed in more than one form. Polymorphism is considered as one of the important features of Object Oriented Programming.


In C++ polymorphism is mainly divided into two types:

 

·         Compile time Polymorphism

·         Runtime Polymorphism

 

image of polymorphism in c++
Fig: Polymorphism in c++

   1.   Compile time polymorphism: This type of polymorphism is achieved by function overloading or operator overloading.

 

   2.   Runtime polymorphism: This type of polymorphism is achieved by Function Overriding.

No comments:

Post a Comment