1// Public creates avaliability to all classes/files
2public class Object {
3 // Instance of a variable per each class created
4 public int a = 1;
5 // Private restricts in local space (within these brackets)
6 private int b = 5;
7
8 // Defaults as public
9 int c = 0;
10
11 // Method Examples
12 void setB(int B)
13 {
14 b = B;
15 // No return b/c 'void'
16 }
17 int getA()
18 {
19 return b;
20 // Return b/c 'int' in front of method
21 }
22}