Introduce TinyHttp server
[lcapit-junk-code.git] / object-counter / cpp / person.cpp
blobc0cac61b6190e370225776aaeeb436c187c2519c
1 #include "person.h"
3 int Person::count = 0;
5 bool Person::set_idade(int value)
7 if (value < 1 || value > 100)
8 return false;
10 idade = value;
11 return true;
14 int Person::get_idade(void)
16 return idade;
19 int Person::get_count(void)
21 return count;
24 Person::Person(void)
26 idade = 0;
27 count++;
30 Person::~Person(void)
32 count--;