If I say a car has a certain number of tires, a tire size, a tire brand, then I am guessing I could make a class like this:
public class Car
{
public int TireCount {get;set;}
public float TireSize {get;set;}
public string TireBrand {get;set;}
}
On the other hand, I could make Tire a class and then make that a property of the class Car like so:
public class Tire
{
public int Count {get;set;}
public float Size {get;set;}
public string Brand {get;set;}
}
public class Car
{
public Tire tire {get;set;}
}
What is the better way? How deep do I take the relationship? Is it possible to over Object if that there is such as saying?