Answer (Choose 1 answer)
}
}
Which of the following statements is correct about the Position class?
public class Position
{
public string Title;public string Description;
public string Salary Range;
public Position(int ID, string Title, string Desc, string SalRange)
{
this. Title = Title;
Description = Desc;Salary Range = SalRange;
}
public override string ToString()
return $"Position title {Title} "+
$"has a salary range (Salary Range}."+$"Description: { Description}";
A. It is recommended to declare instance variables as private variables instead of public variables and, if necessary, create public properties to read their values
B. The ToString method is incorrect since the returned string is divided into three lines of code
C. The instance variables Description and Salary Range must have this. before them
D. The Position class must have a parameter-less constructor so we can instantiate objects from it
Exit 14