when,where and how to use abstract class and interface
Answer Posted / vinaykumar
If you want to provide your own services for methods we
use interfaces.If you want to provide your own services or
to use the services of the methods in your class then wego
for abstract classes.abstract class is partially implemented
and partially unimplemented class where as interface is
completely unimplemented.both of the objects can not be
created.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are encapsulation, inheritance and polymorphism?
What do you understand by java virtual machine?
What is the size of string?
What is public static?
How variables are stored in memory?
Explain the difference between association, aggregation and inheritance relationships.
What is hotjava?
What are instance variables?
What is the difference between this() and super() in java?
What are the common uses of "this" keyword in java ?
What are different type of exceptions in java?
What is exception in java?
Differentiate between == and equals().
What is the maximum length of a url?
What are advantages and disadvantages of OOPs?