Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

INTERFACE & ABSTRACT in JAVA!!!

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the use of Abstract in Java? why we need to use Abstract and Interface in java?
Thanks in advance!
ADS
 
Daniel
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Interface is Java's solution for mutiple inheritances. Unlike C++, Java doesn't support multiple inheritance.
Abstract class is like a template for other classes. No objects can be created from an abstract classes.
I'd recommend Core Java or Just Java if you want to learn more.
Daniel
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI DANIEL
THANKS A LOT!
ADS
Originally posted by ADS:
What is the use of Abstract in Java? why we need to use Abstract and Interface in java?
Thanks in advance!
ADS

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic