Question: Could you please help using C++ language 1. Complete the implementation of the classes circle and cylinder as decleared in the following program. Declaration of

Could you please help using C++ language 1. Complete the implementation ofthe classes circle and cylinder as decleared in the following program. DeclarationCould you please help using C++ language

1. Complete the implementation of the classes circle and cylinder as decleared in the following program. Declaration of Figures Classes /* File: figures.h classes which represent points, circles and cylinders in the plane */ #ifndef FIGURES_H #define FIGURES H #include #include using namespace std; class point { private: float x; float y; public : point (float a, float b); void write (ostream & out) const; // r = a and y = b // write a point in the form (1,y) class circle { private: point centre; float radius; public : circle (float a, float b. float r); void write (ostream & out) const; class cylinder { private : circle base ; float height; public: cylinder (float a, float b, float r, floath); void write (ostream & out) const; #endif /* FIGURESH / Implementation of Figures Classes * File: figures.cpp Implementation of classes point, circle, and cylinder */ #include "figures.h" I implementation of point I point :: point (float a, float b) // 2 = a and y = b X y = a; = b void point :: write(ostream & out) const // write a point in the form (2,y) out

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 Databases Questions!