Tell me real world example of polymorphism and encapsulation .
Answer Posted / sharuq
polymorphism..
take a boy. at home he is a son and at school he is student
encapsulation..
take a car we can see only body of the car but not engine
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Tell us the difference between merge and quick sort. Which one would you prefer and why?
Does linkedhashset allow duplicates?
Who invented data structure?
List the area of applications of data structure.
Define depth and height of a node?
What are the complexity of binary search?
Describe binary tree and its property.
What is the capacity of arraylist?
What is the difference between an array and vector?
Define non-terminal nodes in a tree?
How many pointers are necessary to implement a simple linked list?
How does arraylist store data?
What is the difference between arraylist and array?
Can an arraylist be null?
Which interfaces are implemented by abstractqueue?