摘要:
多态 package oop.demo7;public class Demo7 { public static void main(String[] args) { //一个对象的实际类型是确定的 new Student() Student student=new Student(); //St 阅读全文
posted @ 2021-10-08 17:30
clown-lan
阅读(8)
评论(0)
推荐(0)
摘要:
Super 调用父类构造方法,必须第一个 super只能出现在子类构造方法或子类方法中 super和this只能有一个出现在构造方法中 this 本身调用者这个对象 super 代表父类对象的应用 package oop.demo5;public class Test { public stati 阅读全文
posted @ 2021-10-08 17:29
clown-lan
阅读(24)
评论(0)
推荐(0)

浙公网安备 33010602011771号