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
How do you check if a string is lexicographically in java?
What does a boolean method return?
What is meant by binding in rmi?
What is the byte order of byte buffer?
What are the special characters?
How can an object be unreferenced?
What are internal variables?
Define canvas?
What is valid keyword in java?
What is treemap in java?
How do you sort data in java?
What is the statements?
How to make a read-only class in java?
Can you write a java class that could be used both as an applet as well as an application?
How to store image in arraylist in java?