Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 07 / Person / Person.h
blob: 499c74466215a9f39bb157dbab8fe1752a7e7575 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

class Person
{
public:
	Person(const char* name, int age);

	void setName(const char* name);
	void setAge(int age);

	const char* getName() const;
	int getAge() const;

	void print();

private:
	char name[20];
	int age;
};