summaryrefslogtreecommitdiff
path: root/CPP/Basics/cow.cpp
blob: 96a47d600304f367667167ebcb3132dffb256305 (plain)
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 "cow.h"

// Constructor
cow::cow(std::string name_i, int age_i, unsigned char purpose_i) {
	name = name_i;
	age = age_i;
	purpose = purpose_i;
}

std::string cow::get_name() {
	return name;
}

int cow::get_age() {
	return age;
}

unsigned char cow::get_purpose() {
	return purpose;
}

void cow::set_age(int age_i) {
	age = age_i;
}