Home / utk / cs102 / fa16 / labf / code_snippets / circle.cpp
Directory Listing
misc
circle.cpp
class_demonstration.cpp
layout.cpp
simple_class_example.cpp
student_class_example.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <iostream>

using namespace std;

class circle {
	public:
		void setRadius(const double&);
		double getRadius() const;
	
	private:
		double radius;
};

int main() {
	//stuff
}

void circle::setRadius(const double& value) {
	radius = value;
}

double circle::getRadius() const {
	return radius;
}