Login with  Log in with facebook
Hiring Manager? SIGN UP HERE

Age old question, still answered incorrectly mostly.

Rishi Yadav
08/05/2011 at 19:51
2 Answers

    An abstract class is a class that is only partially implemented by the programmer. It may contain one or more abstract methods. An abstract method is simply a function definition that serves to tell the programmer that the method must be implemented in a child class.

    An interface is similar to an abstract class; indeed interfaces occupy the same namespace as classes and abstract classes. For that reason, you cannot define an interface with the same name as a class. An interface is a fully abstract class; none of its methods are implemented and instead of a class sub-classing from it, it is said to implement that interface.

Anyway I find this explanation of interfaces somewhat confusing. A more common definition is: An interface defines a contract that implementing classes must fulfill. An interface definition consists of signatures of public members, without any implementing code.

Maneshwar Meel
09/14/2011 at 21:58


when you declared class as a Abstract class then  then you must have to inherit it. You can not object of that abstract class. Rememer abstract class can have abstract method and also non abstract method...


Where as in interface You must have to Implement and in this interface You have to write only Signature of method.... No code written in it. You have to must implement thid interface on all class and override all the method which you wrote in it..


For furthur query or problem


Contact Me

Pradip Bhatt

(Mob : 09328278401)



Pradip Bhatt
08/18/2011 at 00:32

If you want to post any answer to this forum then you need to log in.
Schedule a Demo

Schedule a Demo with us

Name *
Email *
Phone *
Company *