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(
);
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!