using c++ oop !!! kindly need help asap.
Implement the shape, rectangle, and square classes with components as shown and the following functionality:
Example
Constructor shape: Rectanleeeeeee Rectangle constructor 232.5 Rectanleeeeeee Eeeeeeee Rectangle destructor Shape destructor Constructor shape: Squareeeee Rectangle constructor Square constructor Squareeeee AAAaaaa 105.165 Square destructor Rectangle destructor Shape destructor
// main.cpp : Defines the entry point for the application.//
#include "main.h"using namespace std;
int main(void) {{rectangle rec("Rectanleeeeeee", 10, 23.25);std::cout < rec.area()=""><>std::cout < rec.get_name()=""><>rec.set_name("Eeeeeeee");std::cout < rec.get_name()=""><>}
{square squ("Squareeeee", 10.255);std::cout < squ.get_name()=""><>squ.set_name("AAAaaaa");std::cout < squ.get_name()=""><>std::cout < squ.area()=""><>}}
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here