M
Michael Kragh Pedersen
Is it all possible for me to have a subtype in my variables? For
example, like this.
Color Colour
byte Red
byte Green
byte Blue
So that you can access Colour.Blue (the blue value of this colour),and
Colour to get the color itself (for use with fx JPanel and paint), and
so by calling Colour(255,255,255), Red, Blue and Green are set to the
values, and Colour is set to the color value itself. I know how to do
this in Visual Basic, but is it in any way possible for Java?
Michael K. P.
example, like this.
Color Colour
byte Red
byte Green
byte Blue
So that you can access Colour.Blue (the blue value of this colour),and
Colour to get the color itself (for use with fx JPanel and paint), and
so by calling Colour(255,255,255), Red, Blue and Green are set to the
values, and Colour is set to the color value itself. I know how to do
this in Visual Basic, but is it in any way possible for Java?
Michael K. P.