OS Data Structures Question:

Explain real world example of polymorphism and encapsulation?

OS Data Structures Interview Question
OS Data Structures Interview Question

Answer:

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


Previous QuestionNext Question
What is difference between the run time polymorphism and compile time poly morphism and about virtual function?What is AVL tree?