MCQOPTIONS
Saved Bookmarks
| 1. |
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 |
| Answer» B. Size of a derived class object is sum of sizes of non static data members of base class and derived class | |