summaryrefslogtreecommitdiff
path: root/graphs/cpp/const/person.cc
blob: 63e8d73af62c2bb65926a9f692ae9d99dec82c28 (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
25
//
// Created by martial.simon on 2/24/25.
//
#include "person.hh"

Person::Person(const std::string& name, const unsigned int age)
    : name_{ name }
    , age_{ age }
{}
std::string Person::get_name() const
{
    return name_;
}
unsigned int Person::get_age() const
{
    return age_;
}
void Person::set_name(const std::string& name)
{
    name_ = name;
}
void Person::set_age(const unsigned int age)
{
    age_ = age;
}