where u use Abstraction and Interface in real time
Answer Posted / teja
When ever there is need of having same common features
among the subclasses of of super class we have to go for
AbstractClass,
When ever there is no common features for subclasses of
super class we have to go for interface
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
why Interface used?
What is exception in java?
What is difference between printf and scanf?
Why do we use variables?
What is mnemonic code?
Justify your answer that you can't define a method inside another method in java, if you can then how?
What do you understand by overloading and overriding in java?
What is a function in programming?
What is the difference between a switch statement and an if statement?
Why webdriver is an interface?
What is a classloader in java?
What is oop principle in java?
What is collection class in java?
Tell me about different OOPS concepts.
What is the difference between private & public & friendly classes?