Step 1. Do Display 4.11 (4.9, 1st ed.) and use Display 4.12 (4.10 1st ed.) to call 4.11. (4.9 1st ed.)
Step 2.
Add two method definitions
public void setMonth(int month)
public void setMonth(String month)
Step 3.
Use Display 4.12
and change the codes in yellow shaded area as
date1.setDate(1,2,2007);
date1.setMonth(3);
date2.setDate("Feb",2,2007);
date2.setMonth("Apr");
date3.setDate(2007);
Step 4. Show the results of your program execution.
電子二丙 林敬凱 9326323
回覆刪除OK
9326311 電子二丙 余幸娟
回覆刪除呼...還以為跑不出來...出的點小問題
9326230 電子二乙 張惠雯
回覆刪除DateSixthTry
9326149 電子二甲 朱衍印
回覆刪除電子三乙 9226262 朱政宏
回覆刪除電子二乙
回覆刪除柯佑霖
9326247
Lab 12-5-2005 (2) Overloading
電子四乙9126266莊傑迪
回覆刪除完成
http://9226335.blogspot.com/2005/12/lab-12-5-2005-2-overloading.html
回覆刪除電子三丙 9226348 簡宏達
回覆刪除補作完成
http://s9226348.blogspot.com/2005/12/display-411-overload.html