Debian Codegraph @

t/samples/hello_world/cpp/hello_world.cc

raw
1 #include <iostream>
2 #include "hello_world.h"
3
4 int HelloWorld::_id_seq = 0;
5
6 int HelloWorld::public_variable = 0;
7
8 void HelloWorld::private_method() {
9 std::cout << "prrr" << std::endl;
10 }
11
12 HelloWorld::HelloWorld() {
13 this->_id = (HelloWorld::_id_seq++);
14 }
15
16 void HelloWorld::destroy() {
17 std::cout << "Goobdye, world! My id is " << this->_id << std::endl;
18 }
19
20 void HelloWorld::say() {
21 std::cout << "Hello, world! My id is " << this->_id << std::endl;
22 }
23