摘要:
一、具体类名作为形参与返回值 1.方法的形参是类名,其实需要的是该类的对象 比如有一个具体的猫类,我使用另一个类使用猫类的方法 public class CatOperator { public void useCat(Cat c){ c.eat(); }} 那么在调用的时候 public clas 阅读全文
posted @ 2022-03-18 17:59
再美不及姑娘你
阅读(223)
评论(0)
推荐(0)
浙公网安备 33010602011771号