Professional Documents
Culture Documents
DMV Project: Jiaju Liu Period 1
DMV Project: Jiaju Liu Period 1
DMV Project: Jiaju Liu Period 1
Jiaju Liu
Period 1
DMV Operation
The DMV stores data on different types of vehicles (model, color, VIN,
expiration date, etc.) attached to users and admins and performs many
actions required for a DMV to function.
Users may make new accounts, register vehicles, renew vehicles, and access
their information.
Admins may perform all the user actions for any user. In addition, they may
change vehicle ownership and view the entire DMV information.
Demonstration
Classes
Classes and Their Representations
Vehicle (abstract)- defines basic objects and methods for car, motorcycle and
boat classes.
Car – represents a real car.
Motorcycle – represents a real motorcycle.
Boat – represents a real boat.
Account (interface)- defines basic object and methods for user and admin
classes.
User- represents a user account.
Admin- represents an admin-run account
Menu- represents DMV homepage and login page.
Driver- driver class for DMV.
Account
Abstract class
Outlines basic variables and
methods for other classes
Car, Motorcycle, and Boat
Car, motorcycle, and boat inherit basic variables and methods from vehicle.
Admin, and user inherit basic variables and methods from account.
Interface
(see account)
Polymorphism
Admin and user both call register and renew methods but do different things
Features, bugs, second-party code