File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 3697

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:
subject: Regarding abstarct classes
Similar Threads
Reg. native methods
difference between BufferedInputStream(or output) and other i/ostreams,regarding buffers.
Tech Word Game
WA #1.....word association