This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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 REST with Spring (video course) this week in the Spring forum!
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
jQuery in Action, 3rd edition