This week's book giveaway is in the Beginning Java forum.
We're giving away four copies of Murach's Java Programming and have Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Java Programming this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

difference b/w interface and class  RSS feed

 
yasirbadshah
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the difference between interface and class?
 
Manfred Leonhardt
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 can't take it! You are too smart for me! Here is the tiny ad:
Thoughts on deprecation in Java
https://coderanch.com/t/683016/java/Deprecation-Java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!