Define polymorphism?, C/C++ Programming

Define Polymorphism?

A: Polymorphism let a client to treat distinct objects in the similar way even if they were developed from distinct classes and exhibit different behaviors. You can employ implementation inheritance to attain polymorphism in languages like C++ & Java. Base class object's pointer can invoke methods in derived class objects. You can also acquired polymorphism in C++ by operator overloading and function overloading.

 

Posted Date: 3/16/2013 2:55:51 AM | Location : United States







Related Discussions:- Define polymorphism?, Assignment Help, Ask Question on Define polymorphism?, Get Answer, Expert's Help, Define polymorphism? Discussions

Write discussion on Define polymorphism?
Your posts are moderated
Related Questions
how to write c++ for function f(x)= 2x^3 -x^2 +10

Relationship between an Array and Pointers. Consider the following. int arr[] = {0,1,2,3,4,5,6,7,8,9}; If we write arr , it is considered as the address of the first elem

Aim: To implement a program to display a rectangle, circle and triangle. Code:                       class shape {             public:                         vir

Constructor and Destructor function with derived classes If there are constructors included in the base class and the derived class, the compiler automatically calls both of th

Project Description: I want a simple program that will spoof my hardware id. I should be able to prepare the id to spoof to in the program and press "random" button to spoof to

Write a program to determine V c for a given value of time (t)   #include stdio.h #include math.h void main() {      char prompt;   float vs,cr,t,vc;   /* input time */

Command-line arguments are passed into programs using the arguments of main(). Here's a quick example, for a program called by typing "progname file.txt 1 2.7": #include #incl

Write a program called Converter that does three types of metric conversions. Your program should prompt the user for the selection conversion, prompt for input data, and display t

aj is a newbie to the programming and while learning the programming language he came to know the following rules: - Each program must start with ''{'' and end with ''}''.

within 2 mins give me answer pllzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz