Is the following structure in c++ doable and recommended?
class IColour{}
class Grey: public IColour {}
class DarkGrey: public IColour {}
class IMaterial {}
class Rock: public Material, public Grey {}
class Basalt : public Rock, public DarkGrey {}
Is there a way to overwrite the inheritance of a base class in a derived class? That is, is it possible to overwrite the inheritance of Grey with DarkGrey in Basalt?
Aucun commentaire:
Enregistrer un commentaire