hi friends, I would like to know the exact difference between an ABSTRACT class and an INTERFACE. Which would suit the exact requirement. thanks in advance regards - mohan
Hi, interface is to help java programmers to implement multiple inheritance.Your class has to implement an interface or multiple interfaces.Similarly one interface can extends other interface as well
whereas "abstract"class can not be instantiated. Hope this helps. regds NM
"Knowledge is Power"****************<A HREF="http://www.geocities.com/nityananda_mukherjee" TARGET=_blank rel="nofollow">THREAD/SCJP RESOURCES</A>
Hello Mohan, I would like to add more difference, -In interface, the methods will not be having any 'body'(definition) but in abstract classes methods r allowed to have body. - In interface if u define any variables then it will be implicitly coderanch, as well methods also. But not so in abstract classes. ------------------ Anil Kollur
Everyday is a Learning phase! Hence ask "What have I learnt today?"
She's out of the country right now, toppling an unauthorized dictatorship. Please leave a message with this tiny ad: