MCQOPTIONS
Saved Bookmarks
| 1. |
If two classes are defined “Parent” and “Child” then which is the correct type upcast syntax in C++? |
| A. | Parent *p=child; |
| B. | Parent *p=*child; |
| C. | Parent *p=&child; |
| D. | Parent *p=Child(); |
| Answer» D. Parent *p=Child(); | |