package practicefunctions;
import practicefunctions.testerclass;
public class apples {
public int first = 0;
public int second = 0;
public static void main(String[] args) {
apples thing = new apples(5, 9);
testerclass thing2 = new testerclass(8);
int result = thing.first + thing2.third;
System.out.println(result);
}
public apples(int a, int b) {
first = a;
second = b;
}
public static int add(apples a) {
return a.first + a.second;
}
}