Hi,
I get answer in:
http://stackoverflow.com/questions/3084125/object-modelling-problem
that I should use interface instead class Extra in this case:
public Extra
{
public bool Paid {get;set;}
public string Name {get;set;}
public string Code {get;set;}
}
class Car
{
private List<Extra> _listOfExtras=new List<Extra>
public List<Extra> ListOfExtras
{
...
}
}
I don't understand why it is better solution