day10-java的单继承多实现的操作特点
This commit is contained in:
13
day10/src/com/inmind/extends_interfaces06/Demo06.java
Normal file
13
day10/src/com/inmind/extends_interfaces06/Demo06.java
Normal 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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user