Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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)

image text in transcribedimage text in transcribed
#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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction to Wireless and Mobile Systems

Authors: Dharma P. Agrawal, Qing An Zeng

4th edition

1305087135, 978-1305087132, 9781305259621, 1305259629, 9781305537910 , 978-130508713

More Books

Students also viewed these Programming questions