|
okay thank you so far. the example was maype a bit confusing.
just imagine speed of ships as speed of the replay (time multiplicator). so i want to have the mother class ships to be with the same values for all ships. so if in your example
alert1 should be 1
alert 2 should be 2
alert 3 should be 2
alert 4 should be 3
the attribute color should be seperate for each ship. thats why its in the child class.
thank you!
|