samedi 8 décembre 2018

java subclass field can't be set

The BlockImg class is derived from Block class . the setContent() method is to set the content field in Block class , the setSrc() method is to set the src field which belong to BlockImg class .

as you can see from the Second Image, the content was correctly set, but the src didn't ... it weird, help needed here! :D

enter image description here

enter image description here





Aucun commentaire:

Enregistrer un commentaire