1public sealed class Tires : List<Tire>, IWheel
2{
3 public decimal TreadDepth { get; set; }
4 public event EventHandler? OnTreadDepthChanged;
5 public void Rotate() { }
6}
7
8public class Tire
9{
10 public decimal Pressure { get; set; }
11 public int Width { get; set; }
12}
13
14[Flags]
15public enum Color : int
16{
17 Red = 1,
18 Blue = 1 << 1,
19 Green = 1 << 2,
20}
21
22public interface IWheel
23{
24 void Rotate() { }
25}