All pastes #771495 Raw Edit

Untitled

public text v1 · immutable
·published 2007-11-13 00:23 UTC
rendered paste body
import java.util.*;
import java.io.*;
import java.text.*;

public class testbankAccount extends BankAccount {
	
	private String name;
	private int balance;
	
	protected void setName(String param0) {
		name = param0;
	}
	
	protected String getName() {
		return name;
	}
	
	protected void setBalance(int _balance) {
		balance = _balance;
	}
	
	protected int getBalance() {
		return balance;
	}
	
	protected void withdraw(int w_amount) {
		balance -= w_amount;
	}
	
	protected void deposit(int d_amount) {
		balance += d_amount;
	}		
}