Question: In C++ please. 1. Complete the implementation of the classes circle and cylinder as decleared in the following program. Declaration of Figures Classes /* File:

 In C++ please. 1. Complete the implementation of the classes circleand cylinder as decleared in the following program. Declaration of Figures Classes

In C++ please.

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; // = 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 /* FIGURES H / Implementation of Figures Classes /* File: figures.cpp Implementation of classes point, circle, and cylinder / #include " figures.h" m m implementation of point I point :: point (float a, float b) // I = a and y = b x y = = a; b; void point :: write (ostream& out) const // write a point in the form (1,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!