If base class consist of two private integers, one static integer and derived class consist of two static integers and one private integer. What would be the size of derived class object?
(a) size of object depends on sizes of its non static data members
(b) size of a derived class object is sum of sizes of non static data members of base class and derived class
(c) size of object is calculated using sizeof() method
(d) none of the mentioned
I have been asked this question in a national level competition.
Asked question is from Fundamentals of Inheritance topic in portion Object Oriented Concepts of C#