summaryrefslogtreecommitdiff
path: root/graphs/cpp/const/person.hh
blob: 0b44308b99a04b1b970d5e199c47aefa266c0859 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once

#include <string>

class Person
{
public:
    Person(const std::string& name, const unsigned int age);
    std::string get_name() const;
    unsigned int get_age() const;
    void set_name(const std::string& name);
    void set_age(unsigned int age);

private:
    std::string name_;
    unsigned int age_;
};