where u use Abstraction and Interface in real time
Answer Posted / praveen
If a user want to interact with my application he need an
interface. With the interface the user can access the
specific methods of a class that implemented the interface.
For example user want to call a method. He already know the
specific class implemented that interface, then he can call
the method through reference object.
Abstract class is used whenever a user restricted to
inheritance but not taking instance of a class or if any
methods are there that should be implement by the user.
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
How do you check if two given string are anagrams?
What are the types of methods in java?
Can java inner class be static?
What is difference between c++ and java ?
How to perform binary search in java?
What are the different types of inner classes?
Can you call a method in a method?
What is anti pattern in cyber security?
What do you mean by synchronized non access modifier?
Is a case study a method or methodology?
Write an algorithm program in java for the following question.. 1) S is a set of integers.X is an integer obtained by sum of two digits in S. Write logic for whether or not the X is from the S. The time of algorithm should not exceed o(n logn).
What is the difference between private & public & friendly classes?
What if static is removed from main method?
Can we create an object of static class in java?
Why is a constant variable important?