“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
India Languages,
4 months ago
History,
4 months ago
Accountancy,
9 months ago
CBSE BOARD X,
1 year ago
Physics,
1 year ago