g++ -g -Wall -c -o main.o main.cpp
g++ -g -Wall -c -o Circle.o Circle.cpp
Circle.cpp: In constructor ‘Circle::Circle(int, int, double)’:
Circle.cpp:9: error: no matching function for call to ‘Point::Point()’
Point.h:6: note: candidates are: Point::Point(int, int)
Point.h:4: note: Point::Point(const Point&)
make: *** [Circle.o] Error 1
// CIRCLE.H
#ifndef CIRCLE_H
#define CIRCLE_H
#include "Point.h
// This class should inherit the Point class
class Circle : public Point
{
public:
// Implement public members here
Circle(int xValue, int yValue, double radiusValue);
void setRadius(double radiusValue);
double getRadius(void) const;
double getDiameter(void) const;
double getCircumference(void) const;
double getArea(void) const;
void circlePrint(void) const;
private:
// Implement private members here
double radius;
};
#endif
// POINT.H
#ifndef POINT_H
#define POINT_H
class Point {
public:
Point(int xValue, int yValue); // Default constructor
// Get and set private data
void setX(int xValue);
void setY(int yValue);
int getX() const;
int getY() const;
// Print the point to the screen in a readable format
void print() const;
private:
// Coordinates of the point
int x;
int y;
}; // End class Point
#endif