CPlusOOP
SiteMap
Reusable Software
Structured Programming
Inheritance/Polymorphism
«Prev
Reusable Code
Polymorphism Concept
Define Polymorphism Concept
Difference Conversion Overloading
ADT Conversion
Conversion Member Functions
Comparing Conversion Operators
Compiler Selects Overloaded Function
Signature Matching Algorithm
Selection Algorithm Function Overloading
Overloaded Function Example
Using Polymorphism Conclusion
Operator Overloading
Overload Operators
Overloadable Operator Types
Declare Friend Function
friend Function Usage
Operator Keyword
Unary Binary Operator Overloading
Overloading Unary Operators
Overloading Binary Operators
Overloading Assignment Operator
Input Output Operators
Overloading Output Operator
Overloading Input Operator
Overloading Pointer Operator
Overloading New Delete
Operator Overloading Guidelines
Overloading Operators Summary
friend Function - Quiz
Pure Polymorphism
Define Class Inheritance
Pure Polymorphism
Derived Class
Public Inheritance
public Inheritance - Quiz
Constructors Base
Reference Typing Conversions
print member-function
Virtual Functions
Guidelines Virtual Functions
Virtual Function - Selection
Virtual Function - Exercise
Abstract Classes
Reinterpret const cast
Dynamic cast Operator
RTTI
typeid Operator
throw C++ Exception
Pure Polymorphism Conclusion
Ecological Simulation
Typing Conversions - Quiz
Each question is worth one point. Select the best answer or answers for each question.
1.
In a class hierarchy defined by public inheritance that creates a related set of user types, __________ may be used to point to any of the objects.
A.
a derived class pointer
B.
a char* pointer
C.
a base class pointer
D.
any pointer declared in any of the classes in the hierarchy
2.
The relationship between __________ and its subtype is called an ISA relationship.
A.
a privately inherited class
B.
a publicly inherited class
C.
a protected inherited class
D.
any inherited class
3.
A constructor in the base class:
A.
must be explicitly called by the derived class constructor
B.
is implicitly called by all derived class constructors with the same parameter list
C.
must be repeated (copied) into the derived class if it is needed
D.
may not be invoked explicitly
Correct answers:
Your Score: 0
Submit
Quiz Explanation