mirror of
https://gitee.com/willfree/min-dev-java.git
synced 2026-10-04 19:42:01 +08:00
finished first component: TTL
This commit is contained in:
1 parent
879e09e879
commit
28d7bb2436
9 files changed
+279
-1
No files matched your search
@@ -0,0 +1,15 @@
|
||||
package others;
|
||||
|
||||
/*
|
||||
* @Author: Wang Feng
|
||||
* @Description:
|
||||
* @Version: 1.0.0
|
||||
* @Date: 9:15 2021/3/9
|
||||
* @Copyright: MIN-Group;国家重大科技基础设施——未来网络北大实验室;深圳市信息论与未来网络重点实验室
|
||||
*/
|
||||
interface Animal {
|
||||
// private String name="灵长类动物";
|
||||
|
||||
|
||||
public void sayHi();
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package others;
|
||||
|
||||
/*
|
||||
* @Author: Wang Feng
|
||||
* @Description:
|
||||
* @Version: 1.0.0
|
||||
* @Date: 9:15 2021/3/9
|
||||
* @Copyright: MIN-Group;国家重大科技基础设施——未来网络北大实验室;深圳市信息论与未来网络重点实验室
|
||||
*/
|
||||
interface God {
|
||||
|
||||
public void makeWorld();
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package others;
|
||||
|
||||
/*
|
||||
* @Author: Wang Feng
|
||||
* @Description:
|
||||
* @Version: 1.0.0
|
||||
* @Date: 10:10 2021/3/9
|
||||
* @Copyright: MIN-Group;国家重大科技基础设施——未来网络北大实验室;深圳市信息论与未来网络重点实验室
|
||||
*/
|
||||
public class HumanImpl implements God,Animal {
|
||||
@Override
|
||||
public void sayHi() {
|
||||
System.out.println("hi");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void makeWorld() {
|
||||
System.out.println("world");
|
||||
}
|
||||
|
||||
public static void main(String[] args){
|
||||
HumanImpl h=new HumanImpl();
|
||||
h.sayHi();
|
||||
h.makeWorld();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user