以下不属于向上转型的是()

以下不属于向上转型的是()

A.Personp=newTeacher();

B.Animala=newCat();

C.Workerw=newboss();

D.Students=newteacher();

正确答案:D

猜你喜欢