OS Data Structures Question:
Explain real world example of polymorphism and encapsulation?
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
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 Question | Next Question |
What is difference between the run time polymorphism and compile time poly morphism and about virtual function? | What is AVL tree? |