Skip to content
  • 首页
  • PHP源码
  • html5网页模板
  • js特效
  • Window软件
  • Mac软件
  • 服务器
  • 其他
Search
源码巴士
  • Sample Page

Java static关键字

在一篇文章里面描述的很详尽了:https://baijiahao.baidu.com/s?id=1636927461989417537&wfr=spider&for=pc

 

自己补充一个图:

总结一句话:静态只能访问静态,非静态既能访问非静态,也能访问静态。 

文章导航
←Android Kotlin Fundamentals: Data binding basics
C#中使用MVC架构(一)→

Copyright © 2022 源码巴士  鲁ICP备19024253号-1