For Java, Instructions: Create classes that model two types of entities: (1) bank customers and (2) bank accounts. A cus
Posted: Sun May 15, 2022 12:29 pm
For Java,
Instructions:
Create classes that model two types of entities: (1) bank
customers and (2) bank accounts. A customer has a first and last
name (these should be modelled as attributes of a class called
Customer). An account has a customer and a balance (these two
should be attributes of a class called BankAccount).
In your main method instantiating objects for two accounts
held by the same customer.
Remember, to set up a new variable and create a new object of,
for example, custom type Elephant (where Elephant is the name of
your custom type), you do this:
Elephant myBuddy = new Elephant(
Instructions:
Create classes that model two types of entities: (1) bank
customers and (2) bank accounts. A customer has a first and last
name (these should be modelled as attributes of a class called
Customer). An account has a customer and a balance (these two
should be attributes of a class called BankAccount).
In your main method instantiating objects for two accounts
held by the same customer.
Remember, to set up a new variable and create a new object of,
for example, custom type Elephant (where Elephant is the name of
your custom type), you do this:
Elephant myBuddy = new Elephant(
- );