Difference between revisions of "Intro Week 6"

esse quam videri
Jump to: navigation, search
(Created page with '==Struct== Structures -struct are composed of several pieces of data that can be of different types. <csharp> struct student { public int oasis id; public string name; public d…')
 
(Struct)
Line 20: Line 20:
 
}
 
}
 
</csharp>
 
</csharp>
 +
 +
In class demo coins
 +
Quarter class
 +
*Mint
 +
*Year
 +
 +
Coin class
 +
*Mint
 +
*Year
 +
*Value

Revision as of 03:04, 2 March 2010

Struct

Structures -struct are composed of several pieces of data that can be of different types.

<csharp> struct student { public int oasis id; public string name; public double GPA; } </csharp> <csharp> struct player { public int playerID; public string playerName; public difficulty playerLevel; } </csharp>

In class demo coins
Quarter class
*Mint
*Year
Coin class
*Mint
*Year
*Value