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

Class Person

week12/examples/virtual.cpp:5–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3using namespace std;
4
5class Person
6{
7 public:
8 string name;
9 Person(string n): name(n){}
10 void print()
11 {
12 cout << "Name: " << name << endl;
13 }
14};
15
16class Person2
17{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected