• Post Reply Bookmark Topic Watch Topic
  • New Topic

inheitance & polymorphism  RSS feed

 
mayank pratap
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is inheritance is possible without inheritance & vice versa??
do help
 
Devaka Cooray
Marshal
Posts: 5517
688
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
mayank pratap wrote:is inheritance is possible without inheritance

If and only if the occurrence of event A is possible without the occurrence of the same event A.
 
mayank pratap
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Devaka Cooray wrote:
mayank pratap wrote:is inheritance is possible without inheritance

If and only if the occurrence of event A is possible without the occurrence of the same event A.

i was not expecting this
 
Devaka Cooray
Marshal
Posts: 5517
688
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
mayank pratap wrote:is inheritance is possible without inheritance

Did you really mean this?
 
Devaka Cooray
Marshal
Posts: 5517
688
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you meant "is inheritance is possible without polymorphism & vice versa??" - both ways are possible. The term of "polymorphism" refers some other ways such as overloading, ...
And if there are only one sub class for a particular super class, then there will not be any polymorphic application.
 
mayank pratap
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ty
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!