day10-java的单继承多实现的操作特点

This commit is contained in:
2026-01-06 16:14:07 +08:00
parent ef4cc41c96
commit 040cef564c
6 changed files with 91 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
package com.inmind.extends_interfaces06;
public class Demo06 {
public static void main(String[] args) {
//调用单继承多实现的类的对象,调用各种方法
Zi zi = new Zi();
zi.methodFu();
zi.method1();
zi.method2();
zi.method();
zi.sameMethod();
}
}