Chapter 12. Multifile Versioning
So far, we've only considered versioning scenarios in which the versioned file is independent from all other versioned files. Versioning gets much more complicated when multiple files with relationships to each other may be checked out and checked in.
Let's imagine a simple Java program for finding employee information, department information, and which employees are in which department. The program requires only two source files, Employee.java and Department.java, and each file corresponds to a Java class. The Java object for a Department references a number of Employee objects when the code runs. Thus, Department.java must reference the other file when it is compiled. If Department calls a method getID() on Employee, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access