C++: Why must private functions be declared?

后端 未结 0 874
暖寄归人
暖寄归人 2021-02-11 17:51

Why do classes in C++ have to declare their private functions? Has it actual technical reasons (what is its role at compile time) or is it simply for consistency\'s sake?

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