Einzelnen Beitrag anzeigen

jbg

Registriert seit: 12. Jun 2002
3.483 Beiträge
 
Delphi 10.1 Berlin Professional
 
#2

Re: [C#] Wie überladene Konstruktoren aufrufen?

  Alt 7. Feb 2004, 23:48
Probiere es mal so:
Delphi-Quellcode:
   public Distance(int max, int min, int mid)
      {
         this.max = max;
         this.min = min;
         this.max = max;
      }

      public Distance() : this(100, 0, 50)
      {
      }
  Mit Zitat antworten Zitat