Vidyalelo
C# Programming · Q43

Classes and Objects in C Sharp

Programming · C# Programming · question 43

Q43

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
Answer
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

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board