Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Doge
- {
- protected:
- int age;
- public:
- Doge(int age) : age(age)
- {}
- int getAge() {
- return this->age;
- }
- };
- void printDoge(Doge dog) {
- stdout << dog.getAge();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement