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.
18 則留言:
電子三乙9426202蘇柏寬
電子四乙 9326227 彭書敏
9444162資管三甲陳怡如
電子三乙9426212黃嘉弘
電子四乙9326246陳彥良
電子四乙 李其霖 9326223
電子三甲9426147吳尚毅
電子三甲9426130曾瑋書
9442234莊淳雅 貿三乙
電子四乙9326206許鈞量
電子四丙 9326309 吳岱祐
9426208 電子三乙
黃韋翔
電子4丙9326315梁彥
電子四乙 9326222 黃璽祐 Lab Magic Parking Tower
電子三丙9426324詹敬翔
電子三乙詹敬智9426224
醫工四甲9325121東峻平
電子三甲 9426114 鄭安舜
張貼留言