Подскажите пожалуйста в чем ошибка? ругается на 22 строчку
package com.javarush.task.task06.task0621;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/*
Родственные связи кошек
*/
public class Solution {
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
// дедушка Вася
String grandfatherName = reader.readLine();
Cat catGrandfather = new Cat(grandfatherName,null, null);
//бабушка Мурка
String grandmotherName = reader.readLine();
Cat catGrandMother = new Cat(grandmotherName,null,null);
//папа Котофей
String fatherName = reader.readLine();
Cat catFather = new Cat(fatherName,null, catGrandfather);
//мама Василиса
String motherName = reader.readLine();
Cat catMother = new Cat(motherName, grandmotherName, null);
//сын Мурчик
String sonName = reader.readLine();
Cat catSon = new Cat(sonName, catMother, catFather);
//дочь Пушинка
String daughterName = reader.readLine();
Cat catDaughter = new Cat(daughterName, catMother, catFather);
System.out.println(catGrandfather);
System.out.println(catGrandMother);
System.out.println(catFather);
System.out.println(catMother);
System.out.println(catSon);
System.out.println(catDaughter);
}
public static class Cat {
private String name;
private Cat parent;
Cat(String name) {
this.name = name;
}
Cat(String name, Cat parent) {
this.name = name;
this.parent = parent;
}
Cat(String name,String catFather,String catMother){
this.name = name;
this.catFather = catFather;
this.catMother = catMother;
}
@Override
public String toString() {
String m = mother != null? ", mother is" + catMother : ", no mother";
String f = father != null? ", father is" + catFather : ", no father";
return "This cat's name " + name + m + f;
}
}
}