Declare const static method for singleton to not change member variables

后端 未结 0 508
余生分开走
余生分开走 2021-02-07 07:39

I want to be able to have a method that returns something and cannot change member variables like in a normal class, for example:

class blah
{
   const int& G         


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