Exam 10: Inheritance and Polymorphism
Exam 1: Introduction to Computers and Programming161 Questions
Exam 2: Introduction to Visual C#131 Questions
Exam 3: Processing Data176 Questions
Exam 4: Making Decisions78 Questions
Exam 5: Loops, Files, and Random Numbers112 Questions
Exam 6: Modularizing Your Code with Methods69 Questions
Exam 7: Arrays and Lists99 Questions
Exam 8: More About Processing Data90 Questions
Exam 9: Classes and Multiform Projects89 Questions
Exam 10: Inheritance and Polymorphism37 Questions
Exam 11: Databases69 Questions
Select questions type
In object oriented programming, ____________ is used to create an "is a" relationship among classes.
Free
(Multiple Choice)
4.9/5
(42)
Correct Answer:
A
The ____________ inherits fields, properties, and methods from the base class without any of them having to be rewritten.
Free
(Multiple Choice)
4.9/5
(37)
Correct Answer:
B
A(n) ____________ is a property that appears in a base class, and must be overridden in a (non-abstract) derived class.
Free
(Multiple Choice)
4.8/5
(36)
Correct Answer:
B
A class that is not intended to be instantiated but is to be used only as a base class is called a concrete class.
(True/False)
4.9/5
(35)
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
(38)
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.8/5
(39)
To allow a property to be overridden, you must include the virtual keyword in the property's declaration in the _________ class.
(Multiple Choice)
4.8/5
(33)
Only methods in a derived class can directly access the base class's private members.
(True/False)
4.8/5
(37)
A(n) ____________ is a method with no body that appears in a base class, and must be overridden in a (non-abstract) derived class.
(Multiple Choice)
4.8/5
(44)
To declare a class as abstract, you use the ____________ in the class header.
(Multiple Choice)
4.8/5
(37)
The ____________ declares that a method in the derived class overrides a method in the base class.
(Multiple Choice)
4.9/5
(38)
Properties in a base class can be overridden in the same way that methods can be overridden.
(True/False)
4.9/5
(33)
If a derived class introduces additional methods, properties, or fields, a base class reference variable cannot access them.
(True/False)
4.8/5
(42)
In object-oriented programming, the ___________ is more general than classes related to it.
(Multiple Choice)
4.8/5
(38)
You can think of a derived class as an extended version of some base class.
(True/False)
4.9/5
(34)
When one object is a specialized version of another object, there is a(n) ____________ between them.
(Multiple Choice)
4.8/5
(37)
When program code instatiates a derived class object, the base class constructor executes first, followed by the derived class constructor.
(True/False)
4.8/5
(40)
If you want to create an abstract read-only property, leave out the set accessor.
(True/False)
4.9/5
(42)
When a derived class method has the same name as a base class method, it is often said that the derived class method ____________ the base class method.
(Multiple Choice)
4.9/5
(44)
Showing 1 - 20 of 37
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)