OS Data Structures Question:

Explain real world example of polymorphism and encapsulation?

Tweet Share WhatsApp

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

Download OS Data Structures PDF Read All 14 OS Data Structures Questions
Previous QuestionNext Question
What is difference between the run time polymorphism and compile time poly morphism and about virtual function?What is AVL tree?