Friday, 13 November 2009

C# Constructors

For some reason I always forget how to call one constructor from another. Of course now I've written it down I'll probably never need to refer to it again but anyway:

public Car(string model, int noWheels){}

Car(string model) : this(model,4){}

No comments:

Post a Comment