• Post Reply Bookmark Topic Watch Topic
  • New Topic

Inheritance and Polymorphism  RSS feed

 
Niki Kulkarni
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have studied Inheritance and Polymorphism but its difficult for me to explain someone what Polymorphism and Inheritance is without giving examples.

What would be a simple text book definition or How would you explain someone without examples?.

Thanks for your time.
 
Joel Christophel
Ranch Hand
Posts: 250
1
Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Stolen from Wikipedia,

Polymorphism: the provision of a single interface to entities of different types.
Inheritance: when an object or class is based on another object or class. A series of such relationships forms a hierarchy,
 
Campbell Ritchie
Marshal
Posts: 56592
172
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the dog learnt polymorphism, so can you. Click the word underlined and scroll down.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!