ThịThúy Hiền
New member
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();
A. Parent *p=child;
B. Parent *p=*child;
C. Parent *p=&child;
D. Parent *p=Child();