Skip to content

Instantly share code, notes, and snippets.

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

Embed
What would you like to do?
/*
Definition on Person class: Person.h
*/
#ifndef PERSON_H
#define PERSON_H
#include "string"
using std::string;
class Person
{
public:
Person();
void setName(string name);
string getName();
void setAge(int age);
int getAge();
private:
string name;
int age;
};
#endif
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.