The member variables of class types are automatically set to an appropriate default value. This
value will differ based on the exact data type; however, the rules are simple:
• bool types are set to false.
• Numeric data is set to 0 (or 0.0 in the case of floating-point data types).
• string types are set to null.
• char types are set to '\0'.
• Reference types are set to null.
Code