Thanks,
I see how that would work, yet I would have to individually instanciate
every car if I awas to use them all.
I want to just instaniate a Car, pick the car I want from the list of
properties, then pick a property of a property. Is this not possible?
"Imran Koradia" <no****@microsoft.com> wrote in message
news:ut**************@TK2MSFTNGP12.phx.gbl...
What you're talking about is class inheritance.
something like:
public class Cars
{
public System.Drawing.Color Wheels;
}
public class Mazda : Cars
{
}
public class Ford : Cars
{
}
Imran.
"mb" <mm@hotmail.com> wrote in message
news:uh*************@TK2MSFTNGP12.phx.gbl... 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.