Ex02 Task1, color

burgi
BASIC-Programmierer
BASIC-Programmierer
Beiträge: 115
Registriert: 15. Apr 2009 18:08
Wohnort: Ludwigshafen

Ex02 Task1, color

Beitrag von burgi »

Hi everyone,

concerning the color of the properties "Shaded" and "Bordered" it is said in the excercise sheet that they are "given". Does that imply, that they shoul be settable via the Constructor of the corresponding classes, which use these properties ? Or is it sufficient if they are accessible via public variables within their traits ?

Greetings and thanks in advance Dominic

Jonnylein
Windoof-User
Windoof-User
Beiträge: 30
Registriert: 24. Okt 2007 15:10
Wohnort: Darmstadt

Re: Ex02 Task1, color

Beitrag von Jonnylein »

Hello,

since the constructors you are inquiring about are pretty much defined in task 1, I suggest setting the public variables instead.

A good alternative would be a default value, so you don't have to set it in each extending class.



Best regards

burgi
BASIC-Programmierer
BASIC-Programmierer
Beiträge: 115
Registriert: 15. Apr 2009 18:08
Wohnort: Ludwigshafen

Re: Ex02 Task1, color

Beitrag von burgi »

Hi,

thanks a lot, thats what I did (the default value and change via public variables), but was not quite sure about my "design" decision.
So thanks a lot for the fast reply.

Greetings Dominic

Antworten

Zurück zu „Archiv“