
In my model of this class, a Bike object cannot exist until it has a number assigned to it i.e. setting the Bike's number will be part of the constructor for the Bike class. While I was thinking about this, I decided to add a getNextNumber() method to my BikeList class which will return the next available number to be assigned to a new bike. I have updated my GoGreen Bikes data dictionary to reflect this and also to add the "lost" status, which I didn't include previously.
After a bike is lost or scrapped, I'd like it to stay on the system for 6 months, in case of further enquiries about that particular bike.

No comments:
Post a Comment