static void Main(string[] args) { Dictionary <string, string> Obj = new Dictionary <string, string> { ["First"] = "First Message", ["Second"] = "Second Message" }; Console.WriteLine(Obj["First"]); var entrollment = new Enrollment(); entrollment.Add(new Student("A")); entrollment.Add(new Student("B")); Console.WriteLine($"{entrollment.Length()}"); }