1) Make the interface Account, it has 2 methods withdraw and dispost that both r
ID: 3539647 • Letter: 1
Question
1) Make the interface Account, it has 2 methods withdraw and dispost that both returns a boolean ans both take a parameter of type double ?
2) Make the interface GoldAccount. it has 1 method called credit that takes a parameter of type double ?
3) A Hashset called slist, contains String entries (for only Seniors and Freshmen) in the following format :
"name-id-age-probation-year"
Assume Freshman and Senior both have constructors like the Student class (name ,id,age, and probation).
you decide to make h HashMap whose keys are Sting (the id) and whose values are Person. Make the HashMap called directory , then loop through your slist and add entries to the HashMap??
Explanation / Answer
package packageA;
public interface GoldAccount {
public void credit(double amount);
}
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.