【简答题】下列程序的输出结果为2,请将程序补充完整。 include<iostream> using namespace std; class Base { public: ______void fun(){cout<<1;} }; class Derived:public Base { public: void fun(){cout<<2;} }; int main() { Base*p=new Deri...
【简答题】下列程序段的输出结果为【 】。 public class Test { void printValue(int m) { do { Systern.out,println('The value is '+m); } while(-m>10); } public static void main(String arg[]){ int i=10; Test t=new Test(); t.print ...
【简答题】下列程序的输出结果为2,请将程序补充完整。 inelude<iostream.h> using namespace std; class Base { public: ______ void fun( ){cout<<1;} }; class Derived: public Base { pbulic: void fubn( ){cout<<2;} }; int main( ) {Base*P=n...