InterviewDigestInterviewDigest

OA Practice Workspace

Technical2026-08-13

OOP concepts with code snippets

AI-Expanded — inferred from the question title, not from the original candidate report

Design a small class hierarchy in an object-oriented language that models a library system, incorporating inheritance to distinguish between different media types like books and DVDs. Demonstrate the use of encapsulation by protecting sensitive data members and provide a code snippet showing how polymorphism allows a single collection to process various items through a common interface method.

Context & Summary

Technical interview focusing on DSA, Java, Spring Boot, and previous project experience

💻 Coding practice works best on desktop.
Code editors are too cramped on mobile screens.