-
Book Overview & Buying
-
Table Of Contents
C# 7 and .NET Core: Modern Cross-Platform Development - Second Edition
By :
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, and readonly keywords?
How many parameters can a method have?
What does a constructor do?
Why do you need to apply the [Flags] attribute to an enum keyword when you want to store combined values?
Why is the partial keyword useful?
Create a console application named Ch06_Exercise02 and add three static methods to the Program class to perform the following tasks:
Numbers used to count are called "cardinal" numbers, for example, 1, 2, 3. Numbers used to order are "ordinal" numbers, for example, 1st, 2nd, 3rd. Write a method named CardinalToOrdinal that converts a cardinal int into an ordinal string, for example...
Change the font size
Change margin width
Change background colour