- This quiz will measure your understanding of Object Orientation:
- object orientation - (complete the following)
Account
BankAccount
Bank
Transactable
Employee
Worker
- object orientation - (complete the following)
- Description
- The purpose of this class is to create a model of an
Account
.
- The purpose of this class is to create a model of an
- Methods to Complete
Long getId()
void setId(Long id)
- Description
- The purpose of this class is to create a subclass of an
Account
which implementsTransactable
.
- The purpose of this class is to create a subclass of an
- Methods to Complete
void setBalance(Double double)
- Description
- The purpose of this class is to create an encapsulation of a
Collection
ofBankAccount
objects.
- The purpose of this class is to create an encapsulation of a
- Methods to Complete
BankAccount removeBankAccountByIndex(Integer indexNumber)
void addBankAccount(BankAccount bankAccount)
Boolean containsBankAccount(BankAccount bankAccount)
- Description
- The purpose of this class is to create an implementation of a
Worker
andTransactable
which candeposit
,withdrawal
, andgetBalance
, of its compositeBankAccount
.
- The purpose of this class is to create an implementation of a
- Methods to Complete
BankAccount getBankAccount()
void setBankAccount(BankAccount bankAccount)
- Description
- The purpose of this interface is to ensure a class can
deposit
,withdrawal
, andgetBalance
.
- The purpose of this interface is to ensure a class can
- Methods to Complete
void deposit(Double amountToIncreaseBy)
void withdrawal(Double amountToDecreaseBy)
Double getBalance()
- Description
- The purpose of this interface is to ensure a class has
BankAccount
- The purpose of this interface is to ensure a class has
- Methods to Complete
BankAccount getBankAccount()
void setBankAccount(BankAccount bankAccount)