Solved

Assigning a Derived Class Reference to a Base Class Variable

Question 22

Multiple Choice

Assigning a derived class reference to a base class variable is safe:


A) because the derived class has an object of its base class.
B) because the derived class is an object of its base class.
C) only when the base class is abstract.
D) only when the base class is concrete.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents