Verschiedenes

Published on: September 20, 2010
Categories: C# C++ und C
Tags: No Tags
Comments: No Comments

Verschiedenes

Objekt einer Klasse anlegen und initialisieren
Test obj1 = new Test() {wert1=0, wert2=0,etc};
 
Parms Modifizierer // Für unbestimmte Anzahl an übergabe-Objekten
public long Addition(int value1,int value2,params int[] liste)
{
long summe= value1+Value2;
foreach(int z in liste)
summe += z;
return summe;
}
x= Addition(1,2,4,5,6,7,8);
oder x = Addition(1,2,arrary);

No Comments - Leave a comment

Leave a comment

Your email address will not be published. Required fields are marked *

*


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Welcome , today is Saturday, August 2, 2014