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
Is heap sort stable?
What are the main differences between the linked list and linear array?
Define double linked list?
Differentiate between iterator and listiterator.
Why linked lists are better than arrays?
What is the difference between set and unordered_set?
Why do we need searching algorithms?
Is linked list faster than array?
What is merge sort in daa?
Can we create a null as a key for a map collection?
What is height balanced tree?
What is fibonacci search?
When should structures be passed by values or by reference?
How would you reverse the characters of an array?
Does hashmap maintain insertion order?