I am currently working on a class hierarchy, where a class B inherits from A and uses the feature of C++ which allows to inherit constructors directly by typing:
using A::A;
rather copying all existing constructors. Is there a way to initialize class attributes of class B, that would otherwise be initialized by the initialization list?
Aucun commentaire:
Enregistrer un commentaire