A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Take Control of Upgrading to Yosemite
Take Control of Automating Your Mac
this week in the
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"
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