Write code to create ‘Shape’ class and include following:               Â
- Create these private data members in Shape class: width (float), length (float), name (string)
- Create wrappers (getters/setters) for each data member
- Create a constructor that initialises data members and a destructor that outputs data members
- Create a copy constructor in the class and use it in main function
Include meaningful composition in the Shape class and use it in main function
Comments
Leave a comment