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
[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"
I agree. Here's the link:
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
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-2013