Unit 9 Vocabulary

Unit 9 Vocabulary

16 Qs

quiz-placeholder

Similar activities

DCIT 50

DCIT 50

KG - University

15 Qs

Polymorphism - Objective Exercises

Polymorphism - Objective Exercises

University

11 Qs

Unit 7 Vocabulary

Unit 7 Vocabulary

KG - University

13 Qs

The Silent Way

The Silent Way

KG - University

15 Qs

2nd 10 TMW Vocabulary quiz

2nd 10 TMW Vocabulary quiz

KG - University

20 Qs

Python Quiz

Python Quiz

10th Grade - University

15 Qs

Unit 9 Vocabulary

Unit 9 Vocabulary

Assessment

Quiz

others

Easy

Created by

Jason King

Used 1+ times

FREE Resource

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

object
Another name for a setter method - one that changes the value of a field.
The runtime type of an object can be that type or any subclass of the declared type. All method calls are resolved starting with the class that created the object. If the method isn't found in the class that created the object, then it will look in the parent class and keep looking up the inheritance tree until it finds the method. The method must exist, or the code would not have complied.
The type that was used in the declaration. List aList = new ArrayList() has a declared type of List. This is used at compile time to check that the object has the methods that are being used in the code.
Objects do the action in an object-oriented program. An object can have things it knows (fields) and things it can do (methods). An object is created by a class and keeps a reference to the class that created it.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

class
One class can inherit object fields and methods from another. This makes it easy to reuse another class by extending it (inheriting from it). This is called specialization. You can also pull out common fields and/or methods from several related classes and put those in a common parent class. This is called generalization.
A class defines what all objects of that class know (fields) and can do (methods). You can also have data and behavior in the object that represents the class (class fields and methods). All objects of a class have access to class fields and class methods, but these can also be accessed using className.field or className.method().
Another name for a setter method - one that changes the value of a field.
The class that is doing the inheriting is called the child class. It inherits access to the object fields and methods in the parent class.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

inheritance
One class can inherit from another and the class that it is inheriting from is called the parent class. The parent class is specified in the class declaration using the extends keyword followed by the parent class name.
The runtime type of an object can be that type or any subclass of the declared type. All method calls are resolved starting with the class that created the object. If the method isn't found in the class that created the object, then it will look in the parent class and keep looking up the inheritance tree until it finds the method. The method must exist, or the code would not have complied.
One class can inherit object fields and methods from another. This makes it easy to reuse another class by extending it (inheriting from it). This is called specialization. You can also pull out common fields and/or methods from several related classes and put those in a common parent class. This is called generalization.
A method that returns the value of a field in an object.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

polymorphism
One class can inherit from another and the class that it is inheriting from is called the parent class. The parent class is specified in the class declaration using the extends keyword followed by the parent class name.
The runtime type of an object can be that type or any subclass of the declared type. All method calls are resolved starting with the class that created the object. If the method isn't found in the class that created the object, then it will look in the parent class and keep looking up the inheritance tree until it finds the method. The method must exist, or the code would not have complied.
At least two methods with the same name but different parameter lists. The parameter lists can differ by the number of parameters and/or the types.
Another name for a setter method - one that changes the value of a field.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

parent class
The type that was used in the declaration. List aList = new ArrayList() has a declared type of List. This is used at compile time to check that the object has the methods that are being used in the code.
Another name for a getter method - one that returns the value of a field.
Objects do the action in an object-oriented program. An object can have things it knows (fields) and things it can do (methods). An object is created by a class and keeps a reference to the class that created it.
One class can inherit from another and the class that it is inheriting from is called the parent class. The parent class is specified in the class declaration using the extends keyword followed by the parent class name.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

child class
A parent class is also called a superclass.
A child class is also called a subclass.
The type that was used in the declaration. List aList = new ArrayList() has a declared type of List. This is used at compile time to check that the object has the methods that are being used in the code.
The class that is doing the inheriting is called the child class. It inherits access to the object fields and methods in the parent class.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

subclass
A parent class is also called a superclass.
A child class is also called a subclass.
The type that was used in the declaration. List aList = new ArrayList() has a declared type of List. This is used at compile time to check that the object has the methods that are being used in the code.
A method that sets the value of a field in an object.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?