← Back to Users
hazel_fiver's activity in the archive.
class Ball {static String colour; Ball(String c) { colour = c; }...}
e.g. new Ball("Red"); new Ball("Blue"); would always create two Ball objects.
Perhaps the member variable you used for the colour was a static/class variable?
For instance:would cause the behaviour you described.