Mittwoch lesson

This commit is contained in:
sageTheDM 2024-12-19 07:51:04 +01:00
parent e0efeb82ef
commit 8901dea11b
61 changed files with 663 additions and 0 deletions

View file

@ -0,0 +1,6 @@
public class App {
public static void main(String[] args) throws Exception {
Hans hans = new Hans();
hans.walk();
}
}

View file

@ -0,0 +1,8 @@
public class Hans implements IWalk, ISleep {
@Override
public void walk() {
System.out.println("Walk");
}
}

View file

@ -0,0 +1,3 @@
public interface ISleep {
void walk();
}

View file

@ -0,0 +1,3 @@
public interface IWalk {
void walk();
}