c# error CS0200 code example
Example: c# error CS0200
/* Sedan.cs(41,5): error CS0200: Property or indexer
'Sedan.Speed' cannot be assigned to -- it is read only */
public void SpeedUp()
{
Speed += 5;
} //Trying to change/set value
public double Speed
{ get; } //Property speed doesn't have setter
public double Speed
{ get; set; } //Fixes error