jeudi 3 novembre 2016

How should I name these classes?

I have two different group of classes which inherit from two different base classes (Value and Token).

In both groups I have classes that I would simply call String, Number, Name, if only their name didn't clash with the class name from the other group.

So basically I need a way to distinguish the class String that inherits from Value from the class String that inherits from Token, and I have no idea on how to do this.

I can't put them in the namespace of their base class because thy inherit from the same class they are in and the compiler gives me an "invalid use of incomplete type" error. How should I resolve this?

Aucun commentaire:

Enregistrer un commentaire