A class design requires that a member variable should be accessible only by same package, which modifer word should be used?A.protectedB.publicC.no modiferD.private

题目
A class design requires that a member variable should be accessible only by same package, which modifer word should be used?

A.protected

B.public

C.no modifer

D.private


相似考题
参考答案和解析
参考答案:C
更多“A class design requires that a member variable should be accessible only by same package, which modifer word should be used? ”相关问题
  • 第1题:

    If I were you I () accept the invitation.

    A、will

    B、would

    C、may

    D、should


    参考答案:B

  • 第2题:

    ______ it rain tomorrow moring, the loading ______.

    A.Should / will be postponed

    B.If / shall be postponed

    C.Should / would be postponed

    D.If / has to be postponed


    正确答案:C
    一旦明天早上下雨,装货将被延迟。

  • 第3题:

    He insisted that she__________improve her oral English by doing a lot of practice.

    A.could
    B.would
    C.might
    D.should

    答案:D
    解析:
    【考试点拨】考查虚拟语气【应试指导】句意:他坚持认为她应该通过大量练习来提高口语:insist后的宾语从句中的谓语应用虚拟语气,即“should+动词原形”,should也可省略。

  • 第4题:

    ________ the vessel have no safety radiotelegraphy certificate at the time of her delivery,she ________ be held to be unseaworthy.

    A.If/may

    B.Will/shall

    C.Should/would

    D.Would/should


    正确答案:C

  • 第5题:

    Which of the following shows the proper pronunciation of the word "should" in the sentence"What should we do"


    答案:C
    解析:

  • 第6题:

    I__________have been there,but I__________not find the time.

    A.should;would
    B.should;could
    C.might;could
    D.could;could

    答案:B
    解析:
    考查情态动词的用法。句意为:“我本应该去那里,但我没时间。”should have done表示“过去本应做的事而实际上并没有做”,常含有责备、遗憾的语气。