Source

pyptug / islanders / cpp / puppy.cpp

Full commit
#include <iostream>
using namespace std;

class Puppy
{

	int m_Age;
	
	public:
	
	int  getAge() const { 
		return m_Age; 
	}
	
	void setAge(int age) {
		m_Age = age;
	}
	
};

int main( int argc, const char* argv[] )
{
 Puppy benji;

 benji.setAge(1);
 cout << "age :" << benji.getAge() << endl;
}