aspose file tools*
The moose likes Programming Diversions and the fly likes inheitance & polymorphism Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Other » Programming Diversions
Bookmark "inheitance & polymorphism" Watch "inheitance & polymorphism" New topic
Author

inheitance & polymorphism

mayank pratap
Greenhorn

Joined: Oct 27, 2009
Posts: 3
is inheritance is possible without inheritance & vice versa??
do help
Devaka Cooray
ExamLab Creator
Saloon Keeper

Joined: Jul 29, 2008
Posts: 2891
    
  19

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.

Author of ExamLab ExamLab - a free SCJP / OCPJP exam simulator
My Home Page -- Twitter Profile -- JavaRanch FAQ -- How to Ask a Question
mayank pratap
Greenhorn

Joined: Oct 27, 2009
Posts: 3
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
Saloon Keeper

Joined: Jul 29, 2008
Posts: 2891
    
  19

mayank pratap wrote:is inheritance is possible without inheritance

Did you really mean this?
Devaka Cooray
ExamLab Creator
Saloon Keeper

Joined: Jul 29, 2008
Posts: 2891
    
  19

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

Joined: Oct 27, 2009
Posts: 3
ty
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: inheitance & polymorphism
 
Similar Threads
Field hiding
4 key points about Oops
WA #1.....word association
Disadvantage for the Inheritance
Realization/Generalization?