java之实例方法

带static在类中类名直接调用

不带static的方法称为实例方法,实例方法的调用必须先new一对象

posted @ 2021-01-20 10:04  CGoodHabits  阅读(209)  评论(0)    收藏  举报