can u give one sinario when you use Abstract Class and When
you use Interface.
Answer Posted / srinivasa
If there are multiple objects which use common methods and
different implementaion of methods We use Abstract class.
If multiple objects use different implementation of methods
for every object we use interface.
Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
What is the basic concepts of OOPS?
How do you create an array in java?
how we can make a read-only class in java?
Explain about abstract classes in java?
Can a function return a function?
What is string and its types?
What is the use of keywords in java?
How many bits is size_t?
What is difference between public static and void?
What is meant by interface?
Do I need java on my pc?
What is console based application in java?
What is string in java is it a data type?
What is classname class in java?
What is Java Shutdown Hook?