Creating a Class in an Existing Compilation Unit

An alternative way to create a new class is to add it to an existing compilation unit. Double-click a compilation unit in the Packages view and type the code for the class at the desired position in the compilation unit.