Tuesday, September 19, 2006

作業一的範例 code

package icsc.examples.exercise ;

public class BuyFoodExercise {
public void brotherBuyFood() throws LostMoneyException {
//.....
}
public void sisterBuyFood() throws LostMoneyException {
//.....
}
public void fatherBuyFood() {
//.....
}

public static void main(String[] args) {
BuyFoodExercise ex = new BuyFoodExercise();
ex.fatherBuyFood();
}

}

0 Comments:

Post a Comment

<< Home