Text states: "1. Open up the file, Student.cs, and update the starter code to make use of auto-implemented properties."
Check your solution provides the following code:
{
private static int nextStudentId = 1;
public string Name { get; set; }
public int StudentId { get; set; }
public int NumberOfCredits { get; set; } = 0;
public double Gpa { get; set; } = 0.0;
public Student(string name, int studentId, int numberOfCredits, double gpa)
{
Name = name;
StudentId = studentId;
NumberOfCredits = numberOfCredits;
Gpa = gpa;
}
public Student(string name, int studentId): this(name, studentId, 0, 0) { }
public Student(string name): this(name, nextStudentId)
{
nextStudentId++;
}
}
Suggested change: The task given alludes to writing code for only a single part of a class, leading to confusion on how step 2 relates to step 1. Would revise step 1 to say something along the lines of "1. Open up the file, Student.cs, and update the starter code to make use of auto-implemented properties as well as the class constructors needed."
Relevant Link
Text states: "1. Open up the file, Student.cs, and update the starter code to make use of auto-implemented properties."
}