aspose file tools*
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
Author

Regarding abstarct classes

Kaush Kane
Ranch Hand

Joined: May 22, 2006
Posts: 37
i HAVE A QUESTION PLZ ADVICE....

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

Joined: Oct 23, 2005
Posts: 3716
    
    5

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.


My Blog: Down Home Country Coding with Scott Selikoff
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