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){}
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment