Main Navigation
Share your interview in your own words — our AI handles the rest. Hardly takes 2 minutes.
Practice mock interviews or book a 1:1 call for career guidance, resume reviews, and more.
Connect with us on social media
Interview experiences & questions tagged Oop 2
Design and implement a Buy Now Pay Later (BNPL) system for Flipkart. The solution should be purely in-memory (no database required) and runnable/demonstrable via a driver/main program. Required capabilities: - **seed_inventory and view_inventory**: Load products (name, count, price) and display current inventory stock. - **register_user**: Register a user with an assigned initial BNPL credit limit. - **buy(user, items, payment_method, date)**: Support payment methods `PREPAID` or `BNPL`. Prevent BNPL transactions once credit limits are exhausted. - **clear_dues(user, orderIds, date)**: Support partial or full clearance of pending balances mapped to specific orders. - **view_dues(user, date)**: Display pending dues prior to the provided date, sorted by purchase date, marked as `PENDING` or `DELAYED` (if older than 30 days). - **order_status(user)**: Output complete order history along with remaining BNPL credit limit. - **Bonus**: Implement logic to blacklist users defaulting on 3 or more orders, alongside dynamic `add_inventory` and `remove_inventory` functionality.
What is the difference between an abstract class and an interface in .NET?
What is OOP? Explain its core principles.
Explain the concept of Sealed Classes in Java, how they restrict inheritance, and why they are useful in domain modeling.
Explain each of the SOLID principles of object-oriented design and provide examples of how they are applied in Java development.
Coming Soon