What is the difference between Abstract Class and Interface
Answer Posted / ravi
1.A programmer creates abstract class when there are some
common features shared by all the objects.
A programmer writes an interface when all the features
should be implemented differently for different objects.
2.When an abstract class is written the programmer should
provide sub classes to it.
A programmer writes an interface when he wants to leave
implemntation classes to third party vendors.
Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
What is == mean?
What is java util function?
What is off heap memory?
What is class and object in java?
Why are there no global variables in java?
How do you clear a list in java?
What is difference between module and function?
Tell me how many ways are there to initialise an integer with a constant.
What is the program development process?
Is alive and join method in java?
Which class is the superclass for all the classes?
Which software is used for java programming?
What is ascii format?
Is 0 an irrational number?
What is the length of a string?