class Account { private double balance; public Account(double initialDeposit) { balance = initialDeposit; } public double Balance //프로퍼티 { get { return balance; } //잔액조회 //set{balance = value;} } public void Deposit(double amount) { lock (this) { balance += amount; } } } class Teller //은행원클래스 { string name; //이름 Account account; //처리할 계정 double amount; //예금액 public Teller(string name, Account account, double amount) { this.name = name; this.account = account; this.amount = amount; } public void TellerTask() { account.Deposit(amount); Console.WriteLine(name + ":" + account.Balance); } } class Test { public static void Main() { 여기부분!ㅜㅜ } } 이 코드를 테스트 하려면 어떻게 짜야할까..?? 뭔가 이것저것 도전해봤는데 다 에러가 나서..ㅠㅠ
추천