As we can tell from the last coding experince I am clearly not the best at this coding thing. I know now what I need help with and how to ask so this project is "Writing a Java class definition and instantiating the class in a program"
Write the definition for a class named Bank that includes the following private attributes:
• The name of the bank (several words)
• The year the bank was established (a whole number)
• The number of customers (a whole number)
• The bank’s total assets (dollars and cents)
The class should include two constructors:
• A no-arg constructor that sets the name of the bank to “Unknown”, the year the bank was established to 2011, the
number of customers to 0, and the total assets to 0
• A constructor that has four parameters (one for each attribute) and sets each attribute equal to the corresponding
parameter.
The class should have a mutator and an accessor for each attribute. Additionally, it should have a method named
getAvgAssets that returns the amount of assets per customer (the total assets divided by the number of customers).
public class void Bank()
{
private String bankName = "";
private int year = 2011;
private int customers = 0;
private double totalAssests = 0;
So far this is what I have. Please understand I try and help myself I go to class, I listen, and take notes I just dont understand.