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

前端 未结 0 1596
深忆病人
深忆病人 2021-02-13 08:37

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

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