Create a new project in BlueJ called Assignment1. All classes for the assignment are to be saved in this project.
2. Create the required classes for the project - there should be at least three (3) classes: User, Phone and Battery. You can have any number of additional classes you think are required.
3. Class basics:
User – a user owns 1 phone, they also have a name and an amount per month they pay for their phone
Phone – a phone has a brand, a model and 1 battery. It must also store information about the phone such as whether the phone is on, if it is locked, last dialled number etc (see below)
Battery – a battery has a life i.e. the charge left in the battery and a maximum life (see below)
4. Constructors: all classes must have at least 1 alternate constructor that accepts input parameters used to initialise the class attributes (done in the body of the constructor).
1
Expert's answer
2012-07-06T09:29:07-0400
Unfortunately, your question requires a lot of work and cannot be done for free. Submit it with all requirements as an assignment to our control panel and we'll assist you.
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment