Java Static

在类定义时,由static修饰的方法会与类同时生成

static修饰的是类方法,未修饰的方法只能在类实例化后由实例使用。

posted @ 2022-01-12 13:19  lightsome  阅读(15)  评论(0)    收藏  举报