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 is a ?
How does the java compiler work?
How do you declare a string variable?
What is an accessor?
What is the difference between a vector & an array list?
How many return statement are allowed in a function?
What is difference between arraylist and list in java?
What does bitwise or mean?
how to run ecllipse with jettyserver for windows environment using batch file
How does arraylist work in java?
What is printwriter in java?
What is java object name?
What are default methods ?
Can we assign the reference to this variable?
Can we declare a class as abstract without having any abstract method?