publicclassPet{}publicclassCatextendsPet{}执行代码Catc=newCat();Petp=(Pet)c;下列哪项是正确的?
A、Petp=(Pet)c正常执行
B、Petp=(Pet)c编译错误
C、Petp=(Pet)c运行错误
D、以上都不对