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
Describe the height term in a tree.
What is hash value of a string?
Is arraylist reference type?
What is the minimization factor and time complexity of b-tree?
Is hashtable fail fast?
What is a b+ tree? Explain its uses.
What is comparable interface?
Can you change size of array once created?
What happens if we put a key object in a hashmap which exists?
List the data structures which are used in rdbms, network data modal, and hierarchical data model.
Which is the parent class of abstractsequentiallist class?
Can you declare an array without assigning the size of an array?
What is a simple path?
What are the Difference between tcp and udp?
What is sorted map?