MCPcopy Create free account
hub / github.com/ShiqiYu/CPP / Student

Method Student

week09/examples/static.cpp:15–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13 bool male;
14 public:
15 Student()
16 {
17 student_total++;
18 name = new char[1024]{0};
19 born = 0;
20 male = false;
21 cout << "Constructor: Person(): student_total = " << student_total << endl;
22 }
23 Student(const char * initName, int initBorn, bool isMale)
24 {
25 student_total++;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected