匿名对象

在main方法里直接写: new StudentDemo().method(new Student());

posted @ 2022-03-02 21:57  Ging2000  阅读(13)  评论(0)    收藏  举报