18.7. Exercises: Classes and ObjectsΒΆ
Before you get started, make sure you have forked and cloned the starter code.
Open up the file,
Student.cs, and update the starter code to make use of auto-implemented properties.In
Program.cs, instantiate theStudentclass using yourself as the student. For theNumberOfCreditsgive yourself1for this class and a GPA of4.0because you are a C# superstar!In the
SchoolPracticeproject, create a classCoursewith at least three fields. Before diving into Visual Studio, try using pen and paper to work through what these might be. At least one of your fields should be aListorDictionary, and you should use yourStudentclass.Using auto-implemented properties, in the
SchoolPracticeproject, create a classTeacherwith four properties:FirstName,LastName,Subject, andYearsTeaching.
