Java - Object-Oriented Programming Concepts
You want to design a Java class hierarchy for different types of employees: Manager, Developer, and Intern. All employees have a name and salary, but only Managers have a bonus. Which OOP principle helps you avoid repeating code for name and salary in each class?
