您的位置:首页 > 编程语言 > Java开发

5.3

2015-09-19 15:58 309 查看
/*target:create a class with default constructor,and print a 

 * message, then product an object for this class

 * methods:imitate the example on page83

 */

class Bird

{Bird()
{System.out.println("Default constructor");}

}

public class Test3 {
public static void main(String[] args) {
Bird b=new Bird();
}

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  Java