This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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.
 
GeeCON Prague 2014
 
subject: difference b/w interface and class