Interview Q&A / Object-Oriented Programming

INTERVIEW Q&A · 69 QUESTIONS

Object-Oriented Programming interview questions

The four pillars, interfaces, abstract classes and design basics.

  1. Explain the Interface Segregation Principle with a Worker interface example.

    No class should be forced to implement methods it does not use. Split one big interface into small, focused ones so each class picks only what applies.

    BeginnerQuick answer1 min read