Test your knowledge and understanding by answering some questions, get some hands-on practice, and explore this chapter's topics with deeper research.
Answer the following questions:
- What are the four access modifiers and what do they do?
- What is the difference between the
static
,const
, andreadonly
keywords? - What does a constructor do?
- Why do you need to apply the
[Flags]
attribute to anenum
keyword when you want to store combined values? - Why is the
partial
keyword useful? - What is a tuple?
- What does the C#
ref
keyword do? - What does overloading mean?
- What is the difference between a field and a property?
- How do you make a method parameter optional?
Use the following links to read more about this chapter's topics:
- Fields (C# programming guide): https://docs.microsoft.com/en-us/dotnet/articles/csharp/programming-guide/classes-and-structs/fields
- Access modifiers (C# programming guide): https://docs.microsoft.com/en...