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
Define an abstract class with reference to java.
Is arraylist zero based?
What is command line used for?
What method is used to specify a container's layout in java programming?
What is byte code and why is it important to java’s use for internet programming?
Is ruby built on java?
Can you use this() and super() both in a constructor?
What is the use of volatile in java?
How do you compare two strings lexicographically?
What is a method header?
Can we catch more than one exception in single catch block?
What is fundamental datatype?
What is polymorphism and what are the types of it?
State the difference between creating string as new () and literal.
What is another word for methodology?