Classes, Part 2: CS 310 Lecture notes

Object-Oriented Programming with Java Lecture Notes

5 February 2009 • Classes, Part 2


Unit testing provides a good example. One way to test a class's methods is to write testing classes and store them in the same (package) directory as the classes. This is convenient but tends to clutter up the directory. An alternative is to create a second directory for just the testing classes and let the class-path search combine the two separate directories into what will be effectively a single package.


This page last modified on 24 January 2006.