M
mb
Here is an example of what I want to create:
A class called Cars
public class Cars
{
public string Mazda;
public string Ford;
etc, etc..........
}
then I want to create properties for each car so if I instantiate Cars:
Cars myCar = new Cars();
then I can access this:
myCar.Mazda.Wheels = Color.Black
I hope this makes sense.
Thanks
PS. I want to randomly pick a car and have its Wheel property checked.
A class called Cars
public class Cars
{
public string Mazda;
public string Ford;
etc, etc..........
}
then I want to create properties for each car so if I instantiate Cars:
Cars myCar = new Cars();
then I can access this:
myCar.Mazda.Wheels = Color.Black
I hope this makes sense.
Thanks
PS. I want to randomly pick a car and have its Wheel property checked.