欢迎光临散文网 会员登陆 & 注册

一个人(Person)在过河的时候需要使用(useTool())一条船(Boat)。

2023-03-08 21:56 作者:酸奶公园  | 我要投稿

一个人(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

}


}


一个人(Person)在过河的时候需要使用(useTool())一条船(Boat)。的评论 (共 条)

分享到微博请遵守国家法律