Computers

University

Image

Access Modifiers, Inheritance & Polymorphism

301
plays

39 questions

Show Answers
See Preview
  • 1. Multiple Choice
    30 seconds
    1 pt

    Which of this keyword must be used to inherit a class?

    super

    this

    extent

    extends

  • 2. Multiple Choice
    30 seconds
    1 pt

    A class member declared protected becomes a member of subclass of which type?

    public member

    private member

    protected member

    static member

  • 3. Multiple Choice
    30 seconds
    1 pt

    Which of these is correct way of inheriting class A by class B?

    class B + class A {}

    class B inherits class A {}

    class B extends A {}

    class B extends class A {}

  • Answer choices
    Tags
    Answer choices
    Tags

    Explore all questions with a free account

    Already have an account?