0

Can anyone tell me why this cout<<emp->getComm() line of code will give error in attached code?

https://code.sololearn.com/c9GnovWmZlTO/?ref=app

13th Jul 2019, 6:50 AM
Amit chavare
Amit chavare - avatar
9 Answers
+ 1
~ swim ~ ohh yeah got it .....Thank you so much
13th Jul 2019, 7:10 AM
Amit chavare
Amit chavare - avatar
0
Formatted code ~ swim ~ please have a look at it
13th Jul 2019, 6:56 AM
Amit chavare
Amit chavare - avatar
0
~ swim ~ yeah bcz i have commented that statement in code ..... And asking why it was failing. I am just uncommenting it now please check
13th Jul 2019, 7:01 AM
Amit chavare
Amit chavare - avatar
0
~ swim ~ we upcasted emp to manager class then why we cant access manager class method ?
13th Jul 2019, 7:02 AM
Amit chavare
Amit chavare - avatar