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 | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 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 Respuestas
+ 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