With full explanation about how the code works including its geometry. https://code.sololearn.com/cR6gUidbrNhp/?ref=app
12/16/2017 7:20:01 AM
Micro Pixels1 Answer
New AnswerAnswer 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
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message