★★ Java の宿題ここで答えます Part 63 ★★at TECH
★★ Java の宿題ここで答えます Part 63 ★★ - 暇つぶし2ch376:デフォルトの名無しさん
07/10/25 01:14:47
>>375
コンストラクタ追加
public Meibo(){
this.name = "お前";
this.age = 23;
this.occupation = "自宅警備員";
}
public Meibo(String name){
this.name = name;
this.age = 60
this.occupation = "TBS";
}
public Meibo(String name,int age){
if(age <= 0)throws new IllegalArgumentException("age must be positive");
this.name = name;
this.age = age;
this.occupation = "ネトウヨ";
}



次ページ
続きを表示
1を表示
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch