Difference between abstract class and Interfaces?

Answer Posted / hema

Abstract Class is the Class where it can have Methods with
both Definition and Declaration.

Method Declaration: public void Display();
Method Definition: public void Add(){ ..code goes on here...}

When all the methods in a class are only Declared then it is
Interface.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What two classes are used to read data only?

849


Why isn’t there operator overloading?

813


Where is jre installed?

801


What is the use of jtable?

859


Is java a pure object oriented language?

735


What are void methods?

799


Why is java called the platform independent programming language?

795


Is namespace same as package in java?

748


Can we call virtual funciton in a constructor ?

1951


Is 0 a real number?

787


What is the difference between == and === javascript?

811


Explain about field hiding in java?

716


What is api data?

765


What do you mean by local variable and instance variable?

717


What is a conditional statement explain with example?

764