public Color(int id, string name, IColorResolver colors) { this.id = id; this.name = name; this.colors = colors; this.colors.AddColor(this); }
public Object(int id, int size, int color, int author, IColorResolver colorResolver) { this.id = id; this.size = size; this.color = color; this.author = author; this.colors = colorResolver; }