Given that the Lap_Top class derives from Computer class, which of the following pointer declarations is legal?
A) Lap_Top* a_laptop = new Computer( ... ) ;
B) Computer* a_computer = new Lap_Top( ... ) ;
C) Lap_Top* a_laptop = Computer( ... ) ;
D) *a_computer = new LapTop( ... ) ;
Correct Answer:
Verified
Q12: If a member function is declared _,
Q13: The C++ compiler can assign object addresses
Q14: A(n) _ function is a virtual function
Q15: Which of the following statements is a
Q16: A pointer variable (l-value) that is of
Q18: If you dynamically cast a pointer to
Q19: Complete the header for class Artist, which
Q20: _ is a process that resolves name
Q21: _ are used to group collections of
Q22: At the top of the level of
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents