Question: Write a program with two base classes Base class STAFF should have private data NAME. Base class CONTRACTOR should have private data ID. Derived class
Write a program with two base classes Base class STAFF should have private data NAME. Base class CONTRACTOR should have private data ID. Derived class MANAGER should inherit from both base classes. and also have private data address. Program body should declare instance of each and insert data
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
