A parking tower is out of order someday. If you park a Benz, you will end up with a Torben. Write a program to simulate this scenario. First create a class called CarParked which has a static method called outOfOrder. Name an object called yourCar, which happens to be a Benz. Your program should contain a class called CarParked and a test program called CarParkedDemo which test the method by CarParked.outOfOrder(yourCar).
Hint: You may study Display 5.14 to get some ideas.
24 則留言:
電子二乙 9526240 游耀鴻
電子二丙 9526319 鍾宜展
電子二乙 9526238 王詩集
電子二乙9526248蔡泓修
電子二丙 9526350 莊安富
電子二丙 9526349 李昌訓
9526335陳綉青電子二丙
電子二乙 9526243 吳聖源
資工二甲 9527129陳晏禎
資工二甲 9527158 張懷仁
電機三乙 9428252 許坦立
電子二乙 9526232 徐振倫
電子二乙9526214許祐齊
電子二乙9526208羅沛緹
電子二丙9526358張譽融
9526302 周崇曄 電子二丙
電子四甲9226119 許成輔
資工二甲 9527131 施宇涵
電子四丙 方彥順 9326351
電子二丙 9526362 馮文甫
電子三乙 9426231 吳奕欣
電子二乙9526224范丞儀
醫工四甲9325146陳品汶
電子三乙9426235吳佳蓉
張貼留言