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 ascending and descending order?
What is homogeneous array?
Define in brief an array.
What is 1d array?
What does stack top do?
What differences exist between hashmap and hashtable?
How do you get placements?
Is hashmap part of collection?
How does quicksort partition work?
What will you prefer for traversing through a list of elements between singly and doubly linked lists?
Can nsarray contain nil?
Is bubble sort faster than selection sort?
Can we override compareto method for enumerations?
how to add an item to the beginning of the list?
Is hashmap a data structure?