Create a class called box which has private data members


Create a class called Box which has private data members: length and width, both float area, found from length and width name which is a dynamic string constructor

1) create a contructor with default parameters of 1 for length and width.

2) the constructor should calculate ther area member frm length and width.

3) add a static member called total_area.In the constructor,add the area of the box created toi total_area variable.

4) add a comment with cout<

Solution Preview :

Prepared by a verified Expert
Programming Languages: Create a class called box which has private data members
Reference No:- TGS01522201

Now Priced at $10 (50% Discount)

Recommended (99%)

Rated (4.3/5)