If Base Class Consist Of Two Private Integers One Static #351
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?
This multiple choice question (MCQ) is related to the book/course gs gs108 CSharp. It can also be found in gs gs108 Object Oriented Concepts - Fundamentals of Inheritance - Quiz No.2.
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?
size of object depends on sizes of its non static data members
size of a derived class object is sum of sizes of non static data members of base class and derived class
size of object is calculated using sizeof() method
none of the mentioned