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 abstract classes 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 » Beginning Java
Bookmark "abstract classes" Watch "abstract classes" New topic

abstract classes

Andrew Lit
Ranch Hand

Joined: Jul 01, 2002
Posts: 135
where could i read about usage of abstract classes? i couldn't find nothing suitable for me on
could you suggest me something?
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
If you do a google search on this site for +abstract+class you will find alot of reading material on the subject.

"JavaRanch, where the deer and the Certified play" - David O'Meara
Andrew Lit
Ranch Hand

Joined: Jul 01, 2002
Posts: 135
of course i will but i thought that someone could suggest something here
but thanx anyway
Dan Chisholm
Ranch Hand

Joined: Jul 02, 2002
Posts: 1865
The Java Language Specification has a good description of abstract classes and how to use them.
Java Language Specification section, Abstract Classes
[ July 24, 2002: Message edited by: Dan Chisholm ]

Dan Chisholm<br />SCJP 1.4<br /> <br /><a href="" target="_blank" rel="nofollow">Try my mock exam.</a>
Anthony Villanueva
Ranch Hand

Joined: Mar 22, 2002
Posts: 1055
Basically, an abstract class is a class that cannot be instantiated. If you like, you can treat it as an interface. An abstract class is normally expected to be subclassed and its methods overriden/implemented by this subclass.
It doesn't matter if the abstract class has abstract methods or not. You can have an abstract with all of its methods implemented. However, a class that implements an interface or extends an abstract class, and does not implement all of superclass's methods, must be declared as an abstract class.
Snigdha Solanki
Ranch Hand

Joined: Sep 07, 2000
Posts: 128
From the Java API, is an abstract class.It is the superclass of all classes representing an input stream of bytes.
InputStream has the following abstract method:
public abstract int read();
which a subclass must provide an implementation for.Some of the subclasses of InputStream are FileInputStream,ByteArrayInputStream and FilterInputStream.

Snigdha<br />Sun Certified Programmer for the Java™ 2 Platform
Andrew Lit
Ranch Hand

Joined: Jul 01, 2002
Posts: 135
thank you very much
I agree. Here's the link:
subject: abstract classes
It's not a secret anymore!