A developer wants to create a class Vehicle that can never be instantiated on its own but provides a common startEngine() method for Car and Truck. What should Vehicle be?
You are designing a PaymentSystem. You have different types of payments: CreditCard, PayPal, and Crypto. They all must have a process() method. What is the best way to enforce this?
In a User class, the password field is set to private and can only be changed via a setPassword() method that checks for a minimum length. Which OOP principle is being applied?