| 22 | }; |
| 23 | |
| 24 | class Student: public Person |
| 25 | { |
| 26 | public: |
| 27 | string id; |
| 28 | Student(string n, string i): Person(n), id(i){} |
| 29 | void print() |
| 30 | { |
| 31 | cout << "Name: " << name; |
| 32 | cout << ". ID: " << id << endl; |
| 33 | } |
| 34 | }; |
| 35 | |
| 36 | void printObjectInfo(Person & p) |
| 37 | { |
nothing calls this directly
no outgoing calls
no test coverage detected