“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
9
Answer:
- Size of all non-static data members
- Order of data members
- Byte alignment or byte padding
- Size of its immediate base class
- The existence of virtual function(s) (Dynamic polymorphism using virtual functions).
- Compiler being used
- Mode of inheritance (virtual inheritance)
Explanation:
Similar questions
Geography,
5 months ago
Math,
5 months ago
Economy,
5 months ago
Biology,
10 months ago
Accountancy,
10 months ago
CBSE BOARD X,
1 year ago
Physics,
1 year ago