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

Class Person

week15/examples/rtti.cpp:4–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected