Is size of the object affected by type of access-specifier and type of inheritance?

Viewed 417

While answering one of the question, there was a discussion thread below my answer. Which suggests that depending on the access specifier (or may be the type of inheritance) private/protected/public the sizeof the class object may vary!

I still don't understand from their brief discussion, how is that possible ?

1 Answers
Related