//============================= Methods ===================================== public void DisplayTShirt() { Console.ForegroundColor = ConsoleColor.Yellow; Console.WriteLine(); Console.WriteLine("\tThe T-shirt that you have selected has :"); Console.WriteLine(); Console.WriteLine($"\tColor : {TShirtColor.ToString()}"); Console.WriteLine($"\tSize : {TShirtSize.ToString()}"); Console.WriteLine($"\tFabric : {TShirtFabric.ToString()}"); Console.WriteLine(); Console.WriteLine($"\tPrice : {TShirtPrice}"); Console.ForegroundColor = ConsoleColor.White; }
public TShirt(TShirtSize size,TShirtColor color) { this.size = size; this.color = color; }
public TShirt() { this.size = TShirtSize.M; this.color = TShirtColor.Red; }