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


Please Help Members By Posting Answers For Below Questions

Describe the height term in a tree.

533


What is hash value of a string?

464


Is arraylist reference type?

456


What is the minimization factor and time complexity of b-tree?

681


Is hashtable fail fast?

436






What is a b+ tree? Explain its uses.

511


What is comparable interface?

525


Can you change size of array once created?

438


What happens if we put a key object in a hashmap which exists?

472


List the data structures which are used in rdbms, network data modal, and hierarchical data model.

505


Which is the parent class of abstractsequentiallist class?

461


Can you declare an array without assigning the size of an array?

506


What is a simple path?

527


What are the Difference between tcp and udp?

457


What is sorted map?

488