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
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: 3102
    
  40

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
What would SCJP exam questions look like? -- Home -- Twitter -- 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: 3102
    
  40

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: 3102
    
  40

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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: inheitance & polymorphism