Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Del 1 - SavingsAccount implements Accout

 En bank består av mange ulike type kontoer: sparekontoer, brukskontoer, depositumskontoer, støttekontoer etc. Felles for alle kontoer er Account-grensesnittet, slik definert under:

Code Block
package inheritance;
 
public interface Account {

	public String getName();

	public void setName(String name);

	public void deposit(double amount);

	public void withdraw(double amount);

	public double getBalance();
}

...