File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Abstract class and Interface
Joined: Jun 25, 2002
Jan 04, 2004 20:51:00
can a abstract class exist without abstract method ?
is it possible a interface class has empty body ?
author and iconoclast
Joined: Jul 08, 2003
Jan 04, 2004 21:15:00
Yes, you can have an abstract class with no abstract methods. Yes, you can have empty interfaces -- like java.lang.Cloneable and java.io.Serializable.
[Jess in Action]
Joined: Feb 15, 2002
Jan 05, 2004 08:05:00
You can have interface without body and it has got a special name "Marker interface"
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: Abstract class and Interface
forcing implementing methods
abstract class Vs interface
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014