CS 211 - 10/5/16 Access Modifiers private - can only be accessed from inside of the class default (no keyword is used) - can be accessed from anywhere inside of the classes "package" (This default mode screws up Java) protected - can only be accessed from inside of the class or from a class that inherits this class public - can be accessed by any code To compile Java Code: Source code: Point2d.java To compile: javac Point2D.java Compilation creates a file called Point2d.class To run the class file, we type: java Point2d In Java: the new operator is similar to malloc Everything (except primitives) are references/pointers