Skip to content
Preptima

OOP Theory interview questions

Abstraction and the classical definitions, plus the terminology questions asked verbatim in screens.

4 questions in CS Fundamentals.

easy2

easyConceptCoding

Skip the definitions. Show me encapsulation, abstraction, inheritance and polymorphism, each in about ten lines of code, and then tell me when inheritance is the wrong tool.

OOP examples beat definitions: a class refusing a bad withdrawal shows encapsulation, a caller depending on an interface shows abstraction, a subclass reusing a parent method shows inheritance, and one loop running different overrides shows polymorphism. Inheritance is wrong when the child breaks a parent promise.

4 minentry

medium2