Ругается на "this.weight = 8;" в строке 17. Пожалуйста, объясните, что не так?
package com.javarush.task.task05.task0510;
/*
Кошкоинициация
*/
public class Cat {
String name;
int age;
int weigth;
String address;
String color;
public void initialize(String name) {
this.name = name;
this.age = 2;
this.weight = 8;
this.color = "red";
this.address = null;
}
public void initialize(String name, int age, int weight) {
this.name = name;
this.age = age;
this.weight = weight;
this.address = null;
this.color = "color";
}
public void initialize(String name, int age) {
this.name = name;
this.age = age;
this.weight = 1;
this.color = "blue";
this.address = null;
}
public void initialize(int weight, String color) {
this.name = null;
this.address = null;
this.weight = weight;
this.color = color;
this.age = 5;
}
public void initialize(int weigth, String color, String address) {
this.name = null;
this.weigth = weigth;
this.color = color;
this.address = address;
this.age = 12;
}//напишите тут ваш код
public static void main(String[] args) {
}
}