Saved Bookmarks
| 1. |
Pointer to a base class can be initialized with the address of derived class, because of _________(a) derived-to-base implicit conversion for pointers(b) base-to-derived implicit conversion for pointers(c) base-to-base implicit conversion for pointers(d) derived-to-derived implicit conversion for pointersI have been asked this question by my school teacher while I was bunking the class.I want to ask this question from Pointer to Objects topic in section Assigning Object, Pointer to Objects, Passing and Returning Object of Object Oriented Programming |
|
Answer» Right answer is (a) derived-to-base IMPLICIT CONVERSION for pointers |
|