Chapter 4: Classes
Learning Objectives
After completing this chapter, you should be able to do the following:
- Use access modifiers to customize fields and methods.
- Override built-in methods such as
ToString
andEquals
. - Understand equality and sameness in C#.
Key Terminology
Throughout this lesson you should make note of the following terms and their definitions as you read the content on the page:
Classes for C#
- class
- object
- fields
- methods
- members
- instance
this
keyword- shadowing
Modifiers in C#
- access level
- access modifier
public
private
- default access
- assembly
- world-level
Encapsulation
- encapsulation
- accessor
- getter
- setter
- auto-implemented property
- backing field
Constructors
- default constructor
Methods
- instance method