Guess the output. ( Challange) | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

Guess the output. ( Challange)

With full explanation about how the code works including its geometry. https://code.sololearn.com/cR6gUidbrNhp/?ref=app

16th Dec 2017, 7:20 AM
Micro Pixels
Micro Pixels - avatar
1 Resposta
0
Answer should CB. In the code you wrote fun as virtual. A *a = new C; A *b = new B; a->fun(); //print C b->fun(); //print B
16th Dec 2017, 8:17 AM
$Ā¢šŽā‚¹š”­!šØš“
$Ā¢šŽā‚¹š”­!šØš“ - avatar