C # Basics revisited
C# Basics _____________________________________________________________ Variables ______________________________________________________________ Variables: Named value stored in memory – (case sensitive in C#) · Two types: o Value Types § Stores their values inside their own memory locations § Hold values / assigning one value type to another (literally copies values) § [BENS]-Bool, Enum, Numeric types, Struct (STACK storage) o Reference Types: § contains only address to the dynamic memory location where the value is stored. § (HEAP storage) - Objects that Stores references to the actual data § [CODIS] - Classes, Objects, Delegates, Interfaces Strings Sample: employeeName C# Reserved Variables – Keywords e.g. byte, int, async Declaring Variables static void Main ( string [] args ) { //vars int a ; double change , temperature ;