【简答题】下面程序的输出结果为:Base:: fun,请将程序补充完整。 include <iostream.h> class Base{ public: 【 】 fun(){cout<<'Base::fun'<<end1:} class Derived : public Base{ public: 【 】 fun(){ cout<<'Derived::fun'<<end1; } }; int main()...
【单选题】下面程序的输出结果为( )。 public class Test { public static void main (String args[]) { String X='ABCD'; String Y='EFG'; X=X.substring (X.length()-Y.length()); System.out.println(X); } }