jQuery in Action, 3rd edition
The moose likes Beginning Java and the fly likes Regarding abstarct classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Regarding abstarct classes" Watch "Regarding abstarct classes" New topic

Regarding abstarct classes

Kaush Kane
Ranch Hand

Joined: May 22, 2006
Posts: 37

Subclasses of an abstract class that do not provide an implementation of an abstract method, are also abstract??
Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3753

Such a class does not compile.

If you mark them as abstract, though, they will compile. There's no such thing as a non-abstract class that inherits from an abstract class and does not provide implementations of its parent's abstract methods.

[OCA 8 Book] [Blog]
Ramasubbhu Allur Kuppusamy
Ranch Hand

Joined: Sep 16, 2005
Posts: 120
In other words, the first concrete subclass of an abstract class should implement all the methods in the abstract parentclass.

Regards,<br />Ram.<br />SCJP 1.4
I agree. Here's the link: http://aspose.com/file-tools
subject: Regarding abstarct classes
jQuery in Action, 3rd edition