wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes difference b/w interface and class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "difference b/w interface and class" Watch "difference b/w interface and class" New topic
Author

difference b/w interface and class

yasirbadshah
Greenhorn

Joined: Dec 16, 2001
Posts: 1
what is the difference between interface and class?
Manfred Leonhardt
Ranch Hand

Joined: Jan 09, 2001
Posts: 1492
Hi,
Interface: contract to implement a specified API.
Class: Any java object.
We can extend only one class, but we can implement many interfaces.
You had better start reading any java book as this is essential to Java!
NOTE: Your name doesn't fit with the Ranch naming policy. Please read it here and re-register with a valid name.
Regards,
Manfred.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: difference b/w interface and class