package aPackage; import java.io.IOException; public class AClass implements AnInterface{ int aField_1; int aField_2; public void methodA(int myInt) throws IOException { //some code here aField_1 = 1; } }