首页
话题
动态
专家
文章
作者
公告
更多
积分规则
登录 或 注册
首页
话题
动态
专家
文章
作者
公告
积分规则
发表新帖
发表新帖
What is the difference between a member variable and a local variable?
前端
未结
关注
7
772
再見小時候
2020-11-29 08:01
What is the difference between a member variable and a local variable?
Are they the same?
7条回答
独厮守ぢ
(楼主)
2020-11-29 08:49
Variables declared within a method are "local variables"
Variables declared within the class not within any methods are "member variables"(global variables).
Variables declared within the class not within any methods and defined as static are "class variables".
0
讨论(0)
查看其它7个回答
发布评论:
提交评论
加载中...
验证码
看不清?
提交回复
热议问题