Exam 10: Inheritance and Polymorphism
Exam 1: Introduction to Computers and Programming161 Questions
Exam 2: Introduction to Visual C131 Questions
Exam 3: Processing Data174 Questions
Exam 4: Making Decisions77 Questions
Exam 5: Loops, Files, and Random Numbers109 Questions
Exam 6: Modularizing Your Code With Methods61 Questions
Exam 7: Arrays and Lists99 Questions
Exam 8: More About Processing Data87 Questions
Exam 9: Classes and Multiform Projects89 Questions
Exam 10: Inheritance and Polymorphism37 Questions
Exam 11: Databases69 Questions
Select questions type
A regular class is sometimes called a(n) ____________.
Free
(Multiple Choice)
4.9/5
(80)
Correct Answer:
A
When one object is a specialized version of another object, there is a(n) ____________ between them.
Free
(Multiple Choice)
4.8/5
(72)
Correct Answer:
B
In object oriented programming, ____________ is used to create an "is a" relationship among classes.
Free
(Multiple Choice)
5.0/5
(75)
Correct Answer:
A
The ____________ declares that a derived class is allowed to override a method in the base class.
(Multiple Choice)
4.7/5
(78)
A class that is not intended to be instantiated but is to be used only as a base class is called a(n) ____________.
(Multiple Choice)
4.8/5
(84)
Which one of the following is a specialized version of a general food substance?
(Multiple Choice)
4.8/5
(78)
Properties in a base class can be overridden in the same way that methods can be overridden.
(True/False)
4.9/5
(70)
Which one of the following is a class header indicating that we are defining a class named Amphibian, and it is derived from the Animal class?
(Multiple Choice)
4.7/5
(69)
If the derived class introduces additional methods, properties, or fields, as base class reference variable cannot access them.
(True/False)
4.9/5
(89)
To allow a property to be overridden in the ____________ you write the virtual keyword in the property declaration.
(Multiple Choice)
4.8/5
(92)
When you want to make sure a specific constructor from the base class is used, the derived class constructor must explicitly call the base class constructor using the ____________.
(Multiple Choice)
4.9/5
(67)
You can think of the derived class as an extended version of the base class.
(True/False)
4.9/5
(69)
A statement that tries to use the new operator instantiate an abstract class will not compile.
(True/False)
4.8/5
(76)
In the real world you can find many objects that are specialized versions of more general objects.
(True/False)
4.8/5
(66)
To declare a class as abstract, you use the ____________ in the class header.
(Multiple Choice)
4.9/5
(68)
A method that accepts a base class variable as a parameter cannot accept a derived class variable as a parameter.
(True/False)
4.8/5
(79)
A(n) ____________ is a method that appears in a base class but expects to be overridden in a derived class.
(Multiple Choice)
4.8/5
(76)
A base class reference variable knows only about the members that are declared in the ____________.
(Multiple Choice)
4.7/5
(72)
You cannot assign a base class reference to a derived class variable.
(True/False)
4.9/5
(88)
Showing 1 - 20 of 37
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)