Top 50 object-oriented programming Interview Questions
The most frequently asked object-oriented programming questions across all roles and companies, ranked by real interview frequency. Updated daily.
Implement method overloading by argument count and method overriding through a derived calculator class.
Implement an immutable class whose attributes cannot be changed, added, or removed after construction.
CitiImplement a dictionary-backed sparse vector with efficient updates, lookups, and dot products.
Red HatImplement object-oriented bank transfers with validation, atomic updates, and TDD-friendly results.
ShopifyImplement an object-oriented inventory manager that encapsulates stock updates and SKU lookups.
StripeDefine a class, create its object, call methods through that object, and return the resulting values.
Infineon Technologies AmericasBuild an extensible test runner using abstraction, composition, and polymorphic test actions.
CiscoImplement an encapsulated class with state-changing methods and tests covering valid and invalid book operations.
Coalition TechnologiesCalculate each customer's qualified payment count and total for the first quarter of 2025.
VisaCount 0 and 1 sensor readings by Bosch building using a CTE, LEFT JOIN, and conditional aggregation.
Bosch Building TechnologiesUse CASE logic to label numbers in a range as Fizz, Buzz, or FizzBuzz.
Jpmorgan Chase &Sign up to see every question
Create a free account to unlock this list and practice real interview questions.