Home
API
Releases
Github
example_src
circle.h
1
#ifndef CIRCLE_H_
2
#define CIRCLE_H_
3
4
#include "shape.h"
5
14
class
Circle
:
public
Shape
15
{
16
private
:
17
19
int
radius;
20
21
public
:
22
31
Circle
(
int
r,
int
x,
int
y);
32
40
Circle
(
int
r,
Point
c);
41
49
virtual
std::string
getType
()
const
;
50
59
virtual
double
getArea
()
const
;
60
};
61
62
#endif
Circle::Circle
Circle(int r, int x, int y)
Definition:
circle.cpp:7
Circle::getArea
virtual double getArea() const
Definition:
circle.cpp:27
Shape
Definition:
shape.h:16
Circle
Definition:
circle.h:14
Circle::getType
virtual std::string getType() const
Definition:
circle.cpp:21
Point
Definition:
point.h:12