Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 857 Bytes

File metadata and controls

14 lines (11 loc) · 857 Bytes

DeepCopy & Multi-level Inheritance

How to apply concepts of copy constructor and copy assignment to ensure deep copying

Task 1:

Write the copy constructor and copy assignment operator for the following inheritance to ensure deep copying for Name, Program and Designation attributes. task1

Task 2:

Write the copy constructor and copy assignment operator for the following inheritance to ensure deep copying for color attribute. task2

Task 3:

Implement the following multi-level inheritance in C++ using public inheritance. task3