public class MainClass { int frogSize = 0; public int getCarSize() { return frogSize;
} public MainClass(int s) {
frogSize = s;
} public static void main (String [] args) {
MainClass f = new MainClass(25);
System.out.println(f.getCarSize()); // Access instance method using f
}
}