- This quiz will measure your understanding of Object Orientation:
- object orientation - (complete the following)
AccountBankAccountBankTransactableEmployeeWorker
- 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
Accountwhich 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
CollectionofBankAccountobjects.
- 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
WorkerandTransactablewhich 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)