親クラスの参照を使ってもコンパイルエラーがでます。
どうしたらいいですか?
Animal Poti = new Dog();
Poti = null;
Animal Poti = new Cat();