• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

abstract and interface questions

 
Sambasiva Suresh Kumar Dontamsetti
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. what is the difference between Abstract and Interface Classes?
2. when do u go for Abstract and for Interfaces?
[ EJFH: Remove the URGENT!!! ]
[ April 22, 2004: Message edited by: Ernest Friedman-Hill ]
 
Stefan Wagner
Ranch Hand
Posts: 1923
Linux Postgres Database Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Doesn't look urgent to me.
And not advanced.
Urgent to read the nettiquette.
 
Jessica Sant
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
moving this to the Intermediate forum.
Also, please don't mark your posts as "URGENT!!!" if anything it discourages people from helping you.
 
Warren Dew
blacksmith
Ranch Hand
Posts: 1332
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An interface has only the interfaces to methods - the prototypes for a method call - and none of the implementations (function bodies). An abstract class may have some of the methods actually implemented.
Also, in Java, a class can implement any number of interfaces, but may only inherit directly from one class, abstract or not.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic