dcsimg
Where we use abstract class?
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anas_Farooqui
Posted On:   Wednesday, May 16, 2007 07:44 AM

Where we use abstract class?

Re: Where we use abstract class?

Posted By:   Jani_Kaarela  
Posted On:   Friday, May 18, 2007 10:08 AM



public abstract class ClueBat {

public abstract Clue readTheFManual();

public abstract Clue lookItUpYouLazyBum();

}

Implementation details left as an exercise for the original poster.

Re: Where we use abstract class?

Posted By:   Anonymous  
Posted On:   Wednesday, May 16, 2007 08:37 AM

when you need some default functionality/implentation along with some strict set of rules. what i mean to say is if you need to set some default methods the must need to be implemented in all the subclasses then go for abstract class.



like a Player must have a name so setting the name is the strict rule.
About | Sitemap | Contact