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
What does next mean in java?
Is it possible to cast an int value into a byte variable? What would happen if the value of int is larger than byte?
What are the advantages of user defined functions?
What is the format specifier?
What does sizeof return?
what is meant by HQL?
If try block is successfully executed, Then Is Finally block executed?
what is the purpose of "virtual"?
How big is a pointer?
What is byte value?
Why singleton class is used in java?
Can we use this () and super () in a method?
Which category the java thread do fall in?
What is hotjava?
What does localhost mean?