From 619b9f77a7f623dbe22bba68739696636297e558 Mon Sep 17 00:00:00 2001 From: Francis <455954986@qq.com> Date: Sun, 14 Jun 2020 18:42:15 +0800 Subject: [PATCH] Update derived_base.cpp --- basic_content/using/derived_base.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/basic_content/using/derived_base.cpp b/basic_content/using/derived_base.cpp index b25ec55..bc57800 100644 --- a/basic_content/using/derived_base.cpp +++ b/basic_content/using/derived_base.cpp @@ -21,7 +21,7 @@ class Base { Base():value(20) {} virtual ~Base() {} void test1() { cout << "Base test1..." << endl; } - protected: //私有 + private: //私有 int value; };