Computer Science, asked by Ananyaastha9, 2 months ago

“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 asok1234
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 bhuvna789456
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