> Let's stay I have a base class A. Let's say I have 70 classes that inherit from A.
The alternative case is that you have 70 classes that CONTAIN A. You still only have to change A.
The alternative case is that you have 70 classes that CONTAIN A. You still only have to change A.
a.Read( ... )
a.Write( ... )
And depending on the use case and design, they also need methods such as: A& GetA() { return a; );
const A& GetA() const { return a; }