Tell me real world example of polymorphism and encapsulation .
Answer Posted / sp
Polymorphism can be considered as a Married man. Who acts
differently in different situation , he acts as a son to
his father and the same person acts as father to his
son .That is he plays , different roles in different
environment.
| Is This Answer Correct ? | 120 Yes | 10 No |
Post New Answer View All Answers
What is the use of isEmpty() member methods?
Is quicksort divide and conquer?
How would you reverse the characters of an array?
What is sequential mapping in data structure?
Which sorting is stable?
What do you mean by disjoint set adt?
Why set will not allow duplicates?
Define leaves?
What is the best case complexity of bubble sort?
Can you distinguish between ArrayList and Array?
How are the elements of a 2d array are stored in the memory?
Tell us the difference between merge and quick sort. Which one would you prefer and why?
Can treeset contain duplicates?
Can we define the size of arraylist?
Can we change load factor of hashmap?