Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is polymorphism? Explain with an example.

Answer Posted / abdul vakeel

Having the same name but different forms is the polymorphism....
beatiful example for polymorphism.....
A boy start LOVE with the word FRIENDSHIP....and girl ends
her LOVE with same word FRIENDSHIP..in this the word is same
...but attitude is different...this is called polymorpic
behaviour........

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you define a class in oop?

1170


What is a class oop?

1055


Why is there no multiple inheritance?

1059


What is stream in oop?

1353


What is static modifier?

1320


What is coupling in oops?

1218


What are the three main types of variables?

1176


class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash

2331


How many human genes are polymorphic?

1108


How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction

2176


Explain the advantages of inheritance.

1190


what is the sylabus for priliminaries?

2221


Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer

2197


when to use 'mutable' keyword and when to use 'const cast' in c++

2218


Write a program to sort the number with different sorts in one program ??

2422