Difference between abstract class and Interfaces?
Answer Posted / ranganathkini
An Interfaces defines a public contract of methods for the
classes that implement it. An implementing class must
implement all the method defined by the interface.
An abstract class on the other hand not only defines a
public contract of methods but may also provide partial
implementation of some or all of the class methods. A
subclass of an abstract class inherits the partial
implementation (if any) or must provide a concrete
implementation of the abstract methods.
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What is lexicographically smallest string?
What is the role of garbage collector in java?
what are the high-level thread states? : Java thread
which one is more efficient int x; 1. if(x==null) 2.if(null==x) state which one either 1 or 2?
What does void * mean?
What is a class variable?
What are multiple inheritances? Is it supported by java?
What do you mean by scope of variable?
What is final variable?
placement papaers of spring computing technology
What is the size of a string in java?
Are generics important java?
What are user defined exceptions?
What is string data?
Can we declare main () method as non static?