The following program has several syntax errors as well as style inconsistencies.
Correct the syntax errors and identify the style violations.
public class Chair
{
private string type;
private double weight;
private double cost;
private Chair()
{
}
private Chair(weight, type, cost)
{
}
public string ChairType
{
get
{
return type;
}
set
{
ChairType = value;
}
}
public override ToString()
{
return "Type of Chair: " + ChairType;
}
}
}
Sorry the answer is not available at the moment…
If you are able to find the answer, please make sure to post it here. So that your Juniors have smile on their lips and feel happy.
Spread the 'tradition of sharing'.