-
Notifications
You must be signed in to change notification settings - Fork 0
/
ScottKinneyLab7Circle.h
36 lines (31 loc) · 998 Bytes
/
ScottKinneyLab7Circle.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// FILE Circle Class Specification File
/**
* Program name: ScottKinneyLab7Circle.h
* Discussion : Lab 7 Exercise 1
* Written by: Scott Kinney
* Date:
*/
#ifndef SCOTTKINNEYLAB7CIRCLE_H
#define SCOTTKINNEYLAB7CIRCLE_H
#include "ScottKinneyLab7Fraction.h"
#include "ScottKinneyLab7Point.h"
#include "ScottKinneyLab7Shape.h"
class CircleScottK : public ShapeScottK {
protected:
PointScottK center;
FractionScottK radius; // no negative value allowed
public:
CircleScottK();
CircleScottK(PointScottK &, FractionScottK &);
CircleScottK(const CircleScottK &);
~CircleScottK();
CircleScottK& operator=(const CircleScottK &);
void print(ostream &);
FractionScottK getR(void) const;
FractionScottK getArea(void) const;
FractionScottK getVol(void) const;
void update(PointScottK &, FractionScottK &);
friend ostream& operator<<(ostream &, CircleScottK &);
friend istream& operator>>(istream &, CircleScottK &);
};
#endif