Author
anonymous
almost 8 years ago
Language
Compiler
Options
Author
anonymous
almost 8 years ago
$
prog.cc: In function 'int main()':
prog.cc:44:22: error: 'Base' is an inaccessible base of 'PrivateDerived'
Base* base_ptr1=&aPrivateDerived; // エラー
^
prog.cc:48:22: error: 'Base' is an inaccessible base of 'ProtectedDerived'
Base* base_ptr2=&aProtectedDerived; // エラー
^
Exit Code:
1