Tell me real world example of polymorphism and encapsulation .
Answer Posted / pankaj
Rael world example fo polymorphism can be start machnism of
bike, inwhich u wil hav same method start() but it may be
either by kick start or button start.
N example for encapsulation can be a stack or queue doesn't
matter how it is implented internally with linked list or array
Is This Answer Correct ? | 64 Yes | 27 No |
Post New Answer View All Answers
Who invented merge sort?
How do you search for a target key in a linked list?
What is different between array and list?
State the difference between persistent and ephemeral data structure?
How can you correct these errors?
What is peep stack?
How dynamic arrays are created?
Write the stack overflow condition.
What do you mean by probing?
Define ancestor and descendant ?
What is an object array?
You want to insert a new item in a binary search tree. How would you do it?
How does bogo sort work?
Which collection allows null values?
Can we use any class as map key?