C++ Outer class access Inner class's private - why forbidden

前端 未结 0 1147
予麋鹿
予麋鹿 2021-02-13 08:54

Hello I am wondering why C++ standard allows us in nested classes to access outer class\'s private fields, while it forbids to access inner class\'s private fields from the oute

相关标签:
回答
  • 消灭零回复
提交回复
热议问题