This course will be retired on July 14, 2025.
Quiz Question 1 of 5
class Department
{
public int Id { get; set; }
public string Name { get; set; }
}
Department dept1 = new Department() { Id = 1004, Name = "R&D" };
Department dept2 = new Department() { Id = 1004, Name = "R&D" };
What is the result of the following expression?
dept1.Equals(dept2);
Choose the correct answer below: