“Size of an object is equal to the sum of sizes of data members and member function in
the class”. Justify the correctness of the statement.
Answers
Answered by
2
Answer:
This is because the member functions are always searched in the derived class and then in the base class. The size of a derived class object is equal to the sum of sizes of data members in base class and the derived class.
please mark me as brainliest....
Answered by
0
Explanation:
- Size of all non-static data members.
- Order of data members.
This is because the member functions are always searched in the derived class and then in the base class. The size of a derived class object is equal to the sum of the sizes of data members in the base class and the derived class.
Similar questions
Math,
1 month ago
Science,
1 month ago
Science,
2 months ago
India Languages,
2 months ago
Math,
9 months ago
Biology,
9 months ago
Social Sciences,
9 months ago