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
Aucun commentaire:
Enregistrer un commentaire