public override void Print(int i) { Console.WriteLine($"{i}. Name: {Name}\n" + $"Age: {Age}\n" + $"Country: {Country}\n" + $"University: {University}\n" + $"Specialty: {Spec}\n" + $"Course: {(int)Cours}\n" + $"Laziness coefficient: {dataStud.lazinessCoefficient}%\n" + $"Chance of deduction: {dataStud.chanceOfDeduction}%"); NotifyMark?.Invoke($"Average mark: {averMark()}"); NotifyRetake?.Invoke($"Retake exam: {checkRetake()}"); Console.ResetColor(); Console.WriteLine("\n"); }
public override void Print(int i) { Console.WriteLine($"{i}. Name: {Name}\n" + $"Cost: {Cost}\n" + $"Country of production: {Country}\n" + $"Shop: {Shop}\n" + $"Style: {St}\n" + $"Envirnonment friendly: {(int)EnvironFr}\n" + $"Natural materials: {dataStud.NatMaterial}%\n" + $"Synthetic materials: {dataStud.SynthMaterial}%"); NotifyMark?.Invoke($"Customer Rating: {customerRating()}"); NotifyRetake?.Invoke($"Feedback: {checkFeedback()}"); Console.ResetColor(); Console.WriteLine("\n"); }