Free University of Bozen-Bolzano
Faculty of Computer Science - Bachelor in Applied Computer Science
Bachelor in Production Engineering
Introduction to Programming - A.A. 2005/2006

Lab Exam 22/11/2005

We want to realize a program to be used by a DVD rental shop to manage DVDs to be rented. For each DVD, the following information is stored:

If the number of days that the DVD is rented is 0, this means that the DVD is not rented.

Part 1. Write a class DVD that implements the following methods:

Example program: TestDVD.Java

Part 2.

Write a class UseDVD, client of DVD, that contains the following public static method:

Example program: