Files
oca8-lernen/src/org/eidecker/oca8lernen/general/Interfaces.java
Sebastian Eidecker 53a5fea3da Gemeinsames Lernen
2019-11-14 18:57:49 +01:00

65 lines
748 B
Java

package org.eidecker.oca8lernen.general;
import java.io.IOException;
import org.junit.jupiter.api.Test;
class TestInterfaces {
@Test
public void testMe() {
I1 i1 = new Interfaces();
i1.method1();
// i1.method2();
}
}
public class Interfaces extends SomeAbstractClass implements I1 {
public void method1() {
}
@Override
public void method2() throws IOException {
I1.method3();
}
}
abstract class SomeAbstractClass {
public abstract void method1() throws IOException;
}
abstract interface I1 {
int i = 1;
static void initialize() {
}
static void method3() {
System.out.println("Hallo aus I1");
}
void method1();
void method2() throws IOException;
public abstract interface I2 extends I1 {
}
}