How do I pass an argument to a constructor that has a class has its parameter?
The print method should only print the radius and height of the cyllinder
That is, use the print method in the Circle class.
Then test the Circle class
with 2 cylinder objects, one with two values circle and height and one from an existing cyllinder using the copy constructor.
Then print the radius height
of each object via the print method
Also print surface area and volume of each object via the get method.
#include <iostream>
//#include "circleType.h"
//#include "circle"
using namespace std;
class circle {
private:
double radius;
double area;
public:
circle();
circle(double );
circle (circle &);
// cyllinder object1(x,y);
double x = 5;
double y = 6;
double z = 2.5;
//Why do have declare their datatypes?? and this works but I haven't declared
//another circle for height is that not necessary?
cyllinder object1(circle x, double z);