Skip to content

Instantly share code, notes, and snippets.

@zerokol zerokol/Person.cpp
Created Feb 12, 2019

Embed
What would you like to do?
/*
Implementation of Person class: Person.cpp
*/
#include "Person.h"
Person::Person(){};
void Person::setName(string name){
this->name = name;
}
string Person::getName(){
return this->name;
}
void Person::setAge(int age){
this->age = age;
}
int Person::getAge(){
return this->age;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.