一个人(Person)在过河的时候需要使用(useTool())一条船(Boat)。
一个人(Person)在过河的时候需要使用(useTool())一条船(Boat)。
package 面向对象基本概念综合练习;
//一个人(Person)在过河的时候需要使用(useTool())一条船(Boat)。
public class 课堂练习题1 {
public static void main(String[] args) {
// TODO Auto-generated method stub
class Person {
// code to use the boat to cross the river
}
}
class Boat {
// code for the boat class
}
}