-
Notifications
You must be signed in to change notification settings - Fork 1
Constructors
Mario Gutierrez edited this page Jan 7, 2017
·
3 revisions
public Card(char rank, char suit) { } // Master constructor.
public Card() : this('2', 'C') { } // Use master constructor.You can initialize static variables with the static constructor. This is called only once on first instantiation of the class, or on static member access.
static MyClass()
{
// Initialize some static variable.
}- Abstract Classes
- Access Modifiers
- Anonymous Methods
- Anonymous Types
- Arrays
- Attributes
- Console I/O
- Constructors
- Const Fields
- Delegates
- Enums
- Exceptions
- Extension Methods
- File IO
- Generics
- Interfaces
- Iterators
- LINQ
- Main
- Null Operators
- Parameters
- Polymorphism
- Virtual Functions
- Reflection
- Serialization
- Strings
- Value Types
- "Base" Keyword
- "Is" and "As"
- "Sealed" Keyword
- nameof expression