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

Class Person

week15/examples/typeid.cpp:6–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4using namespace std;
5
6class Person
7{
8protected:
9 string name;
10public:
11 Person(string name=""):name(name){};
12 virtual ~Person(){}
13 string getInfo(){return name;}
14};
15
16class Student: public Person
17{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected