You will design a database for the problem you get by clicking here . The completed program can be downloaded by clicking here .
The design of the classes is left to the reader as an exercise. You will note a few things here. First there are two types of rentals, so you will need two rental classes. You will build a rental class hierarchy as shown here:
While the base class seems to be an abstract class, you will need to provide some real functions in this class since it will be the generic class of the database. There will in fact be a table for this class that allows you to create an abstract factory for retrieving specific rentals from the database. This rental table will contain
Rentals are made to customers, so you should have a customer class. Each customer will be contained in an object, and that object will have a reference id in the database. This id must be included in the Rental classes.
To see actual database design and creation click here . Remember to add this database to your list of shortcuts in BDE.
This discussion in week 5 .