Update derived_base.cpp

This commit is contained in:
Francis 2020-06-14 18:42:15 +08:00 committed by GitHub
parent d7486e76e5
commit 619b9f77a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,7 @@ class Base {
Base():value(20) {}
virtual ~Base() {}
void test1() { cout << "Base test1..." << endl; }
protected: //私有
private: //私有
int value;
};