aspose file tools*
The moose likes Java in General and the fly likes abstract class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "abstract class" Watch "abstract class" New topic
Author

abstract class

suman deb
Ranch Hand

Joined: Jul 14, 2005
Posts: 54
hi all,

why should we use an abstract class or what is advantage of using an abstract class over a normal class?
shan sundaram
Greenhorn

Joined: Feb 07, 2004
Posts: 15
A class that is missing definitions for one or more methods. You can't thus create an object of that class. You must first create a subclass and provide definitions for the abstract methods. Unlike interfaces, abstract classes may implement some of the methods. Though you can't instantiate an abstract class, you can invoke its static methods.
 
 
subject: abstract class