Library Example This example is a simple Java OOP example that shows several types of relations between the classes.