If a java class, say classA
, is extending classB
, it cannot extend Observable
. But if the setChanged()
function were public, instead of protected, we can use composition to create an instance of Observable
in classA
.
I wonder what was the thought process behind making setChanged()
protected.
Aucun commentaire:
Enregistrer un commentaire