ログイン

Object Oriented Programming Mock Test (Midterm) BSIT 307
13問 • 1年前
  • Xai Alexandrei Delos Reyes
  • 通報

    問題一覧

  • 1

    is used in the creation of an object that is an instance of a class using the new keyword.

    constructor

  • 2

    If you do not include any constructors in a class, Java provides a _________, a constructor with an empty parameter list and body.

    default constructor

  • 3

    A default constructor is also known as _____?

    no-argument constructor

  • 4

    Only occurs when constructors have different type parameters.

    constructor overloading

  • 5

    When a constructor calls another constructor with a greater number of parameters, it is called ______?

    constructor chaining

  • 6

    describes the ability of an object to hide its data and methods.

    Encapsulation

  • 7

    It is a getter method is a public method that returns data from a private instance variable.

    accessor

  • 8

    A setter method is a public method that changes the data stored in one or more private instance variables.

    mutator

  • 9

    A class is considered ______ if it remains unchanged after an object of another class is constructed.

    immutable

  • 10

    allows a class to acquire all the attributes (fields) and behaviors (methods) of another class.

    Inheritance

  • 11

    A class that is derived from another class is called a _______

    subclass

  • 12

    The class from which the subclass is derived is called a _______. It is also known as base class or parent class.

    superclass

  • 13

    You can define a new version of an existing method in a child class that makes use of the definition in the parent class. This ability is called _______?

    method overriding

  • 問題一覧

  • 1

    is used in the creation of an object that is an instance of a class using the new keyword.

    constructor

  • 2

    If you do not include any constructors in a class, Java provides a _________, a constructor with an empty parameter list and body.

    default constructor

  • 3

    A default constructor is also known as _____?

    no-argument constructor

  • 4

    Only occurs when constructors have different type parameters.

    constructor overloading

  • 5

    When a constructor calls another constructor with a greater number of parameters, it is called ______?

    constructor chaining

  • 6

    describes the ability of an object to hide its data and methods.

    Encapsulation

  • 7

    It is a getter method is a public method that returns data from a private instance variable.

    accessor

  • 8

    A setter method is a public method that changes the data stored in one or more private instance variables.

    mutator

  • 9

    A class is considered ______ if it remains unchanged after an object of another class is constructed.

    immutable

  • 10

    allows a class to acquire all the attributes (fields) and behaviors (methods) of another class.

    Inheritance

  • 11

    A class that is derived from another class is called a _______

    subclass

  • 12

    The class from which the subclass is derived is called a _______. It is also known as base class or parent class.

    superclass

  • 13

    You can define a new version of an existing method in a child class that makes use of the definition in the parent class. This ability is called _______?

    method overriding