I created a DataThread class that doesn't extend a Thread, but has one as a member variable.
Favor composition over inheritance, is a rule that I heard of, but I am thinking that the name of the class should be change, as to not mislead.
Is this true?
Aucun commentaire:
Enregistrer un commentaire