Hi,
I want to build a nice API (C#) to make it easier for people to consume, I think I've seen this before and want to know how to do this:
MyNamespace.Cars car = null;
if(someTestCondition)
car = new Honda();
else
car = new Toyota();
car.Drive(40);
Is this possible? If so, what needs to be done?