2009年6月25日 星期四

LAB 25 5/25 Magic Parking Tower

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).

程式畫面 Class






程式畫面 Demo

沒有留言:

張貼留言