How can I correctly design such a case?
class A{
string a;
string b;
string c;
string d;
}
class B{
string a;
string b;
string c;
}
class C{
string a;
string d;
}
I tried to create a base class with the shared fields, but then I have to define the shared fields twice
Aucun commentaire:
Enregistrer un commentaire