/home/caleb/ASDV-Java/Semester 2/Assignments/lab8_2_CalebFontenot/src/main/java/com/calebfontenot/lab8_2_calebfontenot/interfacesGrouped/InterfaceGrouped1.java |
package com.calebfontenot.lab8_2_calebfontenot.interfacesGrouped;
public interface InterfaceGrouped1 extends Interface1, Interface2 {
int x = 10;
abstract void IG1();
static void staticMethodOfInterface() {
System.out.println("A static method inside an Interface is shared by every class" +
" that implements Interface InterfaceGrouped1.");
}
default void defaultMethodOfInterface() {
System.out.println("The default implementation was used as there was no overriding" +
" by a class that was implemented the Interface InterfaceGrouped1.");
}
}