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
Can a stack be described as a pointer? Explain.
Define disjoint set adt?
What actions are performed when a function returns?
Treemap orders the elements on which field?
What are the drawbacks of array implementation of queue?
What is array and its types?
What is difference between hashmap and hashset?
Explain merge sort algorithms.
Why set will not allow duplicates?
How does quick sort work?
What are binary search and fibonacci search?
What is array traversing?
Which is faster arraylist or hashmap?
What is adt and its advantages?
What is a static structure?