It's not a secret anymore!
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
JavaRanch » Java Forums » Java » Java in General
Bookmark "abstract class" Watch "abstract class" New topic

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

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.
I agree. Here's the link:
subject: abstract class
It's not a secret anymore!