Update derived_base.cpp
This commit is contained in:
parent
d7486e76e5
commit
619b9f77a7
@ -21,7 +21,7 @@ class Base {
|
|||||||
Base():value(20) {}
|
Base():value(20) {}
|
||||||
virtual ~Base() {}
|
virtual ~Base() {}
|
||||||
void test1() { cout << "Base test1..." << endl; }
|
void test1() { cout << "Base test1..." << endl; }
|
||||||
protected: //私有
|
private: //私有
|
||||||
int value;
|
int value;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user