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
What is binary tree? Explain its uses.
What are threaded binary trees?
What is data and data structure?
What is the difference between arraylist and hashmap?
Is it legal to initialize list like this?
Define path in a graph?
Can you change size of array once created?
Mention one advantage and disadvantage of using quadratic probing?
What is the space complexity of bubble sort?
What does sorting an array do?
How can you represent a linked list node?
Is queue fifo or lifo?
Why is quicksort so fast?
Will arraylist maintain insertion order?
Why do we use hashset?