finished first component: TTL

This commit is contained in:
free will committed 2021-03-09 11:32:37 +08:00
1 parent 879e09e879
commit 28d7bb2436
9 files changed
+279 -1

No files matched your search

+15
View File
@@ -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();
}
+13
View File
@@ -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();
}
+26
View File
@@ -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();
}
}