FAQ:
FAQ
- Explain the data encapsulation principle?
- Becking fields containing the object data should be marked as private.
- What is a backing field?
- When should you use a backing field?
- When should you use a constant?
- When defining a field with a simple data type that that will never change.
- When should you use a read-only field?
- What is the difference between a constant and a read-only field?
- Is static
- Assigned on the declaration
- Assigned to an expression that is fully evaluated at compile time.
- A Read-only field
- can be static or non-static
- Assigned in the declaration or in a constructor
- Assigned to any type of valid expression
Comments
Post a Comment