+ 2

how the size of the object of the inherited class can be known if its access level specifier is private.Please suggest for public and protected also

6th Jul 2017, 1:27 PM
manish chouhan
manish chouhan - avatar
2 odpowiedzi
+ 1
no no I am asking that if in exams inheritance is shown than at that place ho w to calculate.
7th Jul 2017, 8:51 AM
manish chouhan
manish chouhan - avatar
0
use sizeof(objectname) function
6th Jul 2017, 6:29 PM
Shashikant Kadam
Shashikant Kadam - avatar