Let's begin by creating a new C# console app and removing all of the template code within it. We'll then type:
using static System.Console;
Nothing special there, just our usual code to enable us to use WriteLine without a prefix. Then, on the next line, type:
public class Troll {
}
We are going to make a Troll class, so this is a template for stamping out individual troll objects. Between the curly braces, type:
private (string firstname, string lastName, int? age) fullNameAge;
Remember that fields, or instance variables, are usually declared private so they cannot be modified directly by code from other programs, for example. Now we are going to make use of a tuple in the declaration, so we'll enclose the body of the tuple between brackets. We have two basic strings, firstName and lastName. This is followed by an integer called age...