목차
1 프로그램의 목적
2. 구현방법
ⅰ)구성
ⅱ) 각 method의 역할
3. 소스
2. 구현방법
ⅰ)구성
ⅱ) 각 method의 역할
3. 소스
본문내용
d);
System.out.println(\"Address: \" + address);
System.out.println(\"Balance: \" + balance);
System.out.println(\"Active: \" + flag);
}
}
public class Account{
public static void main(String [] args){
Data person1 = new Data();
person1.open(true,\"신\",\"830-0000\",\"대구광역\",\"007\",1456);
person1.deposit(100000);
person1.withdraw(5000);
Data person2 = new Data();
person2.open(true,\"홍길동\",\"770126-1780400\",\"경북 경산시 진량읍\",\"happy\",1199384);
person2.deposit(590000);
person2.withdraw(14800);
person1.print_account();
person2.print_account();
person2.close(false);
person1.print_account();
person2.print_account();
}
}
System.out.println(\"Address: \" + address);
System.out.println(\"Balance: \" + balance);
System.out.println(\"Active: \" + flag);
}
}
public class Account{
public static void main(String [] args){
Data person1 = new Data();
person1.open(true,\"신\",\"830-0000\",\"대구광역\",\"007\",1456);
person1.deposit(100000);
person1.withdraw(5000);
Data person2 = new Data();
person2.open(true,\"홍길동\",\"770126-1780400\",\"경북 경산시 진량읍\",\"happy\",1199384);
person2.deposit(590000);
person2.withdraw(14800);
person1.print_account();
person2.print_account();
person2.close(false);
person1.print_account();
person2.print_account();
}
}
소개글