单项选择题

A.Pet pet1 = new Pet("文文");
B.Dog dog1 = new Dog("旺财");
C.Pet pet2 = new Dog("来福");
D.Dog pet1 = new Pet("文文");