inheritance Tutorial
Scenario:
Create a base class Employee with fields for name and salary, and a method to display details. Create derived classes Manager and Engineer, each with additional fields and overridden methods.
Task:
Create the Employee class with appropriate fields and methods.
Create derived classes Manager and Engineer with additional fields and overridden methods.
Create objects of Manager and Engineer and call their methods.