• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Regarding Inheritance

 
Saral Saxena
Ranch Hand
Posts: 203
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Folks,,

I was reading the section of inheritance and it advantages where I have discovered that....The second (and related) use of inheritance is to allow your classes to be accessed
polymorphically—a capability provided by interfaces as wel..please explain in terms of a short demo of coding ...what the functionality message he want to convey..!!
 
Jeff Verdegan
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Saral Saxena wrote:Hi Folks,,

I was reading the section of inheritance and it advantages where I have discovered that....The second (and related) use of inheritance is to allow your classes to be accessed
polymorphically—a capability provided by interfaces as wel.


I would consider that the main purpose of inheritance.

.please explain in terms of a short demo of coding ...what the functionality message he want to convey..!!


I have a better idea. Instead of always asking people here to write sample code for you, how about you SearchFirst.(⇐click) I'm sure there are plenty of examples to be found on the web. Or better yet, spend some type studying up on interfaces and inheritance and polymorphism, think about what that might mean, write your own example, and post it here if you still have questions.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic