[Mono-list] Quick C# Question.

Zef Hemel zef@fmf.nl
Sun, 31 Mar 2002 09:24:52 +0200


They SHOULD have the same name. And they should have no 'return type', so
when you do this:

class Bla
{
   public void Bla()
   {
      // Is not a constructor
   }

   public Bla()
   {
     // Is a constructor
   }
}

Zef

-----Oorspronkelijk bericht-----
Van: mono-list-admin@ximian.com
[mailto:mono-list-admin@ximian.com]Namens Daniel Carrera
Verzonden: zondag 31 maart 2002 7:49
Aan: Mono
Onderwerp: [Mono-list] Quick C# Question.


Sorry to bug you guys with such a simple question, but I couldn't find the
answer anywhere.

Do constructors MUST have the same name as the class or can constructors
have any name?

Thanks,
Daniel.


_______________________________________________
Mono-list maillist  -  Mono-list@ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list