Hi,
I'm a new C# Developer Community user and I'm also a beginner C# programmer. I have the following C # code:
Now I would like to know how to add my first student to the course object(cs) please. I tried myStudents[0].add(cs), myStudents[0].Add(cs), I tried everything but nothing ever worked.
Thank you in advance for your valuable support.
I'm a new C# Developer Community user and I'm also a beginner C# programmer. I have the following C # code:
// I create an array of five students from a Student class Student[] myStudents = new Student[5]; // I create a class object named Biology from the Course class Course cs = new Course(); cs.courseName = "Biology";
Now I would like to know how to add my first student to the course object(cs) please. I tried myStudents[0].add(cs), myStudents[0].Add(cs), I tried everything but nothing ever worked.
Thank you in advance for your valuable support.