+ 1

method not getting override

Here in this code. type() method is not getting overidden ? Why. https://code.sololearn.com/cJDj0PZ0Ed25/?ref=app

16th Sep 2020, 6:07 PM
Terminal_Phantom
Terminal_Phantom - avatar
1 Resposta
+ 1
Element el{Carbon{}}; Here you are declaring a object of Element and are initialising it with a object of Carbon.....
16th Sep 2020, 6:17 PM
Alexander Thiem
Alexander Thiem - avatar