4 ms·
> 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
by gridspy 3y ago
> 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.
- shuvuvt5 3y ago[dead]
- moshegramovsky 3y agoYes, but in my example, in the 70 classes, all the ::Read and ::Write methods must still say: 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; }