Question: 3. Using inheritance create two class Employee and Worker. Worker inherits the attributes of Employee. Write definitions of base and inherited derived constructors. Write a
3. Using inheritance create two class "Employee" and "Worker". "Worker" inherits the attributes of "Employee". Write definitions of base and inherited derived constructors. Write a complete program that will test the methods of base and derived classes
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
