题目内容
下面代码执行结果正确的是classBaseclass{publicvirtualintShow(){return5;}}classDerivcedlcass:Baseclass{publicnewintShow(){return6;}}classDerivcedlcass1:Baseclass{publicoverrideintShow(){return7;}}classProgram{staticvoidMain(string[]args){Baseclass[]a=newBaseclass[2];a[0]=newDerivcedlcass();a[1]=newDerivcedlcass1();Console.WriteLine("a[0]={0}",a[0].Show());Console.WriteLine("a[1]={0}",a[1].Show());}}
查看答案
搜索结果不匹配?点我反馈