File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

inheitance & polymorphism

 
mayank pratap
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is inheritance is possible without inheritance & vice versa??
do help
 
Devaka Cooray
ExamLab Creator
Marshal
Pie
Posts: 4120
195
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • 0
  • 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
  • 0
  • 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
ExamLab Creator
Marshal
Pie
Posts: 4120
195
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • 0
  • 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
ExamLab Creator
Marshal
Pie
Posts: 4120
195
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • 0
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ty
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic