aspose file tools
The moose likes Programming Diversions and the fly likes inheitance & polymorphism Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Other » Programming Diversions
Reply 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
Saloon Keeper

Joined: Jul 29, 2008
Posts: 2699
    
    3

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 (Download) - the free mock exam kit for SCJP / OCPJP
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
Saloon Keeper

Joined: Jul 29, 2008
Posts: 2699
    
    3

mayank pratap wrote:is inheritance is possible without inheritance

Did you really mean this?
Devaka Cooray
Saloon Keeper

Joined: Jul 29, 2008
Posts: 2699
    
    3

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
4 key points about Oops
Disadvantage for the Inheritance
WA #1.....word association
Realization/Generalization?
Field hiding