watz the difference between abstract class and interface?
Which one u ill choose as a designer?
Answer Posted / ajay roy
Abstract Class is the one which contains atleast one
abstract method and other method may not be essentially
abstract. However, interface always have only method
signature in it. We can not have methods with
implementation in interface unlice abstract class.
When designer wants to use common property of a system then
he should go with abstract method. Because in abstract
method he can have implementation of common properties
along with signature of other method which can be
implemented as per need.
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
Is null an object java?
Who developed java?
How many boolean functions are there?
what is function overloading in java?
How big is a boolean?
What is difference between word and integer?
What is the different between get and post?
What is jrmp?
Can we override singleton class?
What steps are taken when the OS shifts from one-thread execution to another?
What is strings in java?
Can a vector contain heterogenous objects?
What happens if we override private method?
How to create an immutable class?
Can a method be static?