ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Static Variables and Methods

Static Variables and Methods

原创 Linux操作系统 作者:keeking 时间:2009-12-24 20:55:28 0 删除 编辑

Things you can mark as static:
■ Methods
■ Variables
■ A class nested within another class, but not within a method .
■ Initialization blocks

Things you can't mark as static:
■ Constructors (makes no sense; a constructor is used only to create instances)
■ Classes (unless they are nested)
■ Interfaces
■ Method local inner classes
■ Inner class methods and instance variables
■ Local variables

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/7899089/viewspace-623531/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: Instance Variables
下一篇: unix
请登录后发表评论 登录
全部评论

注册时间:2009-07-23

  • 博文量
    194
  • 访问量
    287363