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
How much ram can a 64 bit processor theoretically?
What is java used for?
Explain the difference between intermediate and terminal operations in java8?
What are the properties of thread?
What are the advantages of exception handling?
What are the differences between processes and threads?
how many types of Inheritance?
When does a class need a virtual destructor?
What is unsigned char?
What is the use of callablestatement?
Mention a package that is used for linked list class in java.
What is the base class in java from which all classes are derived?
What is a "pure virtual" member function?
What is the size of a string in java?
How do you do math powers in java?