GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Quiz

Ohne Titel

Jeff Anderson 1 Frage

Quiz starten

Fragen in diesem Quiz (1)

  1. 1Use the following Bank class information. It contains the headings of the methods in the Bank class, along with a description.

    <b>public Bank()<\b>
    // default constructor starts checking and savings account with zero dollars.
    public Bank(double c, double s) // constructor creates an object with c dollars in checking and s dollars in savings.
    public double getChecking() // returns the checking account balance
    public double getSavings() // returns the savings account balance
    public double getCombined() // returns the combined balance of the checking and savings account
    public void changeChecking(double amount)
    // alters the balance of the checking account by the amount parameter
    public void changeSavings(double amount) // alters the balance of the savings account by the amount parameter
    public void closeChecking() // alters the checking account balance to zero
    public void closeSavings() // alters the savings account balance to zero
    Access to methods of the Bank class requires
    1. Ausing a statement, like Bank.getSavings();
    2. Busing a statement, like Bank.getSavings;
    3. Cthe creation of one or more Bank objects.
    4. Dusing the get method.

Informationen

Beschreibung
Quiz am Ohne Titel, erstellt von Jeff Anderson am 07/11/2018.
Sprache
English
Aufrufe
1
Schlagwörter
10th grade
Bewertung
Noch keine Bewertungen
Bewerte dieses Quiz
Bewerte dieses Quiz

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck