If two classes are defined “Parent” and “Child” then which is the correct type upcast syntax in C++?
(c).Parent *p=&child;
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
(c).Parent *p=&child;
need an explanation for this answer? contact us directly to get an explanation for this answer