Author
anonymous
almost 8 years ago
Language
Compiler
Options
Author
anonymous
almost 8 years ago
$
prog.cc: In function 'int main()':
prog.cc:6:9: error: 'int Base::mBaseVar0' is inaccessible
int mBaseVar0;
^
prog.cc:32:70: error: within this context
std::cout << "aProtectedDerived.mBaseVar0=" << aProtectedDerived.mBaseVar0 << "\n"; // アクセス不可
^
Exit Code:
1