adplus-dvertising
frame-decoration

Question

Why is the layout of an inherited class in memory important?

a.

It guarantees backward-compatibility with code that is not familiar with the specific class that was instantiated but only with some of the base classes it inherits from.

b.

It makes the code run faster.

c.

It allows for easy access to data members of the class.

d.

It is not important.

Posted under Reverse Engineering

Answer: (a).It guarantees backward-compatibility with code that is not familiar with the specific class that was instantiated but only with some of the base classes it inherits from. Explanation:The layout is necessary in order to guarantee "backward-compatibility" with code that is not familiar with the specific class that was instantiated but only with some of the base classes it inherits from.

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Why is the layout of an inherited class in memory important?