Solved

Given That the Lap_Top Class Derives from Computer Class, Which

Question 17

Multiple Choice

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents