Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
35 Cards in this Set
- Front
- Back
Code that has been used and tested is said to be ____. Select one: |
reliable |
|
A(n) ____ cannot be overloaded.Select one: |
destructor |
|
A class's ____constructor is automatically supplied. Select one: |
default |
|
When declaring a destructor, which character is used? Select one: |
tilde |
|
An ____ child class method contains the same name and parameters as the parent class method. Select one: |
overridden |
|
A superclass is the same thing as a derived class. Select one: |
False |
|
In some programming languages, such as C#, Visual Basic, and Java, every class you create is a child of one ultimate base class, often called the ____ class. Select one: |
Object |
|
A superclass member that is not hidden is invisible in the derived class. Select one: |
False |
|
What is the name of the access modifier that gives child classes access to the parent class's data fields? Select one: |
protected |
|
Methods that are inherited from a parent class can be overridden. Select one: |
True |
|
When you create any subclass object, the ____ constructor must execute first, and then the ____ constructor executes. Select one: |
superclass, subclass |
|
If a class's only constructor requires an argument, you must provide an argument for every object of the class you create. Select one: |
True |
|
You can write as many constructors for a class as you want, as long as they all have different ____ lists. Select one: |
parameter |
|
One way to give a child class access to a private data field in a parent class is to make the data field public in the parent class. Select one: |
True |
|
When a data field is private, it is said to be ____ to any class other than the one in which it is defined. Select one: |
d. inaccessible |
|
All default constructors are automatically supplied. Select one: |
False |
|
Using inheritance saves time since you do not need to recreate a class's methods and data fields. Select one: |
True |
|
Every derived class "____" specific instance of the base class and the derived class. Select one: |
is a |
|
A child class contains all the data fields and ____ of its parent. Select one: |
methods |
|
What is accomplished when you assign a derived class object to an object of any of its superclass types? Select one: |
implicit conversion |
|
A destructor contains the actions you require when an instance of a class is destroyed. Select one: |
True |
|
____ is the process of creating a new, derived class from a base class. Select one: |
Inheritance |
|
In a class diagram, what symbol is used for the protected access modifier? Select one: |
pound sign |
|
When a superclass contains only constructors that require arguments, you must include at least ____ constructor(s) for each subclass you create.Select one: |
one |
|
|
True |
|
A(n) ____ constructor is one that requires no arguments.Select one: |
default |
|
An instance method or constructor may be overloaded by providing the same name and ____ argument list. Select one: |
a different |
|
The type of polymorphism that applies specifically to objects of the same parent class is sometimes called ____ polymorphism. Select one: |
subtype |
|
Derived classes usually have fields and methods that are more ____ than those of their parent classes. Select one: |
specialized |
|
When a superclass requires parameters upon instantiation, even if you have no other reason to create a(n) ____, you must write one so it can call its superclass's constructor. Select one: |
subclass constructor |
|
A(n) ____ is a method that establishes an object, reserving enough memory space for it and providing its name. Select one: |
constructor |
|
subclass constructor can pass ____ or parameters to its parent constructor.: |
constants |
|
destructor cannot execute unless it is explicitly called from a program. |
False |
|
A constructor may require ____.Select one: |
parameters |
|
A(n) ____ cannot be overloaded. Select one: |
destructor |