更多“Belle's father is off to the fair to show his new invention.() ”相关问题
  • 第1题:

    下列程序的输出结果是

    class Father{

    int m.n;

    Father(int a,int B)

    { m=a;

    n=b

    }

    void show ( ){

    System.out.println("m and n:"+m+" "+n);

    }

    }

    class Son extends Father{

    int p;

    Son (int a,int b,int C)

    { super(a,B) ;

    p=c;

    }

    void show(){supur.show( );

    System.out.println("p:"+p);

    }

    }

    class Test {

    public static void main (String args[ ])

    { Son s:new Son(6,7,8);

    s.show( );

    }

    }

    A.m and n:6 8 p:7

    B.m andn:6 7 p:8

    C.m and n:7 8 p:6

    D.m and n:8 7 p:6


    正确答案:B
    解析:如果你希望访问一个覆盖方法的超类版本,可以通过super来做到这一点,本题中show()的超类版本在子类版本内被调用。

  • 第2题:

    HIS颜色模型中的S表示饱和度。()


    正确

  • 第3题:

    下面对show_bytes的调用将输出什么结果?上传程序代码和输出截屏。 const_char *s = "abcdef"; show_bytes((byte_pointer) s, strlen(s)); 注意字母'a' ~ 'z' 的ASCII码为0x61~0x7A。


    错误

  • 第4题:

    330038003000301585063878906把将字符串s中的一个子串替换成另一个指定的字符串所用到的函数是

    A.330038003000301585063878906 s.replace(old, new [, max])

    B.s.rindex(str, beg=0, end=len(string))

    C.s.strip([chars])

    D.s.changeplace(old, new [, max])


    你别把手机忘了。

  • 第5题:

    用vi打开一个文件,如何用字母”new”来代替文件中所有的字母”old”

    A.:r/old/new

    B.:s/old/new

    C.:1,$s/old/new/g

    D.:%s/old/new/g


    B