Variable Scope, Type Casting and Constants