绝想首页

static class member

叶非 [无奈] 2013-03-16 19:23:39 星期六 晴天 查看:95 回复:0 发消息给作者

Each object of a class has its own copy of all instance variables of the class. However, in certain cases, all calss should share only one copy of particular variable. Such variables are called static variable.

Although static variables might seem like global variables(variables that canb be referenced anywhere in a program) in other languages, static need not be globally accessible, static variables have class scope.

顶一下(32 写日记 1221066 235044
分享排行

 

 

留住已经逝去的峥嵘岁月 记住曾经绽现的万种风情 在记忆即将淡漠的时候 来把这些重新回味

Copyright (C) 2008-2014 www.juexiang.com, All Rights Reserved.

京ICP备2023001011号-3   京公网安备11010802011908号

客服QQ 1017160561 违法和不良信息举报电话 13148464312 邮箱 1017160561@qq.com