★★ Java の宿題ここで答えます Part 63 ★★ at TECH
[2ch|▼Menu]
376:デフォルトの名無しさん
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

4547日前に更新/347 KB
担当:undef