First American Bank provides both normal bank services like checking accounts an
ID: 3920403 • Letter: F
Question
First American Bank provides both normal bank services like checking accounts and mortgages to its customers. Each customer who uses checking services has a checking account. Each customer who gets a mortgage loan from the bank has a mortgage account.
The bank executives ask a team of software analysts to develop a system to manage its customers' bank accounts.
Section A:
Define an abstract Java class named “BankAccount” in a package named “BANKACCOUNTS”. This class has three attributes:
(1) Acount number: an integer of 10 digits, defined as protected
(2) Account type: String (e.g.: "CHECKING" versus "MORTGAGE"), defined as protected
(3) Customer's full name: String, defined as protected
Explanation / Answer
package BANKACCOUNTS; public class BankAccount { protected int accountNumber; protected String type; protected String fullName; }
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.