Advertisement
Guest User

Untitled

a guest
May 31st, 2016
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. class Doge
  2. {
  3. protected:
  4. int age;
  5. public:
  6. Doge(int age) : age(age)
  7. {}
  8.  
  9. int getAge() {
  10. return this->age;
  11. }
  12. };
  13.  
  14. void printDoge(Doge dog) {
  15. stdout << dog.getAge();
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement