OS Data Structures Question:
Download Questions PDF

Explain real world example of polymorphism and encapsulation?


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

Download OS Data Structures Interview Questions And Answers PDF

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