using System.Buffers.Text;
public Clothes(string size, bool isPolyester, double cost)
IsPolyester = isPolyester;
public string Size { get; set; }
public bool IsPolyester { get; set; }
public double Cost { get; set; }
public class Sweater : Clothes
public Sweater(string size, bool isPolyester, double cost, string color, double percentCotton)
: base(size, false, cost)
PercentCotton = percentCotton;
public string Color { get; set; }
public double PercentCotton { get; set; }
public class Nike : Sweater
public Nike(string size, double cost, string color, double percentCotton, string type, int rating)
: base(size, false, cost, color, percentCotton)
public string Type { get; set; }
public int Rating { get; set; }
public static void Main(string[] args)