⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 integrated.java

📁 bank account program. if there is saving and drawing, it will calculate the amount of your account
💻 JAVA
字号:
public class Integrated implements Savings, Current
{
	protected SavingsImpl savingsImpl;    
	protected CurrentImpl currentImpl; 
	public Integrated()
	{
		savingsImpl = new SavingsImpl();
		currentImpl = new CurrentImpl();
	}
	
	public void deposit(double amount)
	{	savingsImpl.deposit(amount);
	}
	
	public void withdraw(double amount)
	{	savingsImpl.withdraw(amount);
	}
	
	public double getSavingsBalance()
	{	return savingsImpl.getBalance();
	}
	
	public double getCurrentBalance()
	{	return currentImpl.getBalance();
	}

	public void issueCheque(double amount)
	{	currentImpl.issueCheque(amount);
	}

	public double getBalance()
	{	return savingsImpl.getBalance()+ currentImpl.getBalance();
	}


}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -