"Richard Coltrane" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> In vb.net, if i inherit from a class then the first i generally do in a
> sub classes contructor is MyBase.New(..);
> Whats the pattern in C#? It seems to do these things automatically; I
> didn't think C# did "anything" automatically?
In C# (and many other OOP languages), the default constructor for base
classes is always called automatically. You can use the ": base(...)"
syntax after the constructor declaration in a derived class if you need
access to a base constructor (from the immediate-ancestor class only) with a
specific parameter list.
Had I done any OOP in VB.NET I would have been very surprised to find that
it *didn't* do that. So I guess it all just depends on your perspective.
Pete