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 is gui programming?
What happens if an exception is not handled in a program?
Differences between C and Java?
Is set ordered in java?
Can we execute java program without main method?
Can we have multiple public classes in a java source file?
How can we make string upper case or lower case?
How is treeset implemented in java?
What is the right data type to represent a price in java?
Explain about OOPS concepts and fundamentals.
What is the difference between JDK and JVM?
Why can't we make a class private in java?
What is meant by stack and queue?
What do you understand by private, protected and public?
You're given a Boolean 2D matrix, can you find the number of islands?