Simplified decorator pattern. Is that correct?
问题 So I've created something like this: interface IStudent { string DisplayInformation(); } public class Student : IStudent { public string Name { get; set; } public string Grade { get; set; } public int Age { get; set; } public virtual string DisplayInformation() { return $"{Name} - {Age} years old is in {Grade} grade"; } } public class StudentDecorator : Student { private Student _student; public StudentDecorator(Student student) { _student = student; } public override string