static静态方法

做功能的都加static,不访问对象,加了static用类名可以访问

属于对象的都不加static,访问对象

 

思考???

image

 

posted @ 2025-08-11 01:19  忧桑の民工  阅读(8)  评论(0)    收藏  举报