Question: Please I need help!!! C++ ------------------------ Consider the following class fully implemented, following the rule of three and working without any bugs (including handling the

Please I need help!!! C++

------------------------

Consider the following class fully implemented, following the rule of three and working without any bugs (including handling the safe empty state in all cases)

Please I need help!!! C++------------------------Consider the following class fully implemented, following therule of three and working without any bugs (including handling the safe

#define_CRT_SECURE_NO_WARNINGS #include #include using namespace std; class Shape{ double* m_area; int m_perimeter; public: Shape (const double areal, int perimeter); Shape (const shape & G); Shape & operator=(const Shape & G); virtual ~Shape();class TwoDShape : public Shape{ char* m name W/ consider this function fully implemented and working perfectly // this function dynamically allocates memory in m_name and copies // the val argument in it void setDynamicName(const char* val); public: // your code goes below here // complete the following constructor and add more functionality if needed TwoDShape(const char* name = nullptr, const doublet area = nullptr, int perimeter = 0)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!