What's the meaning of static variables in an implementation of an interface?

后端 未结 4 1794
悲哀的现实
悲哀的现实 2020-12-04 09:37

I don\'t quite understand static variables when defined in the implementation of an interface. In methods I do understand how they differ from local variables, but not when

4条回答
  •  一个人的身影
    2020-12-04 10:28

    The 'static' keyword in that context is the same as it would be in plain C: it limits the scope of myInt to the current file.

提交回复
热议问题