VectorMax interview question

Basics OOPs questions , Inheritance ,encapsulation ,polymorphism