Guided project: Implement classes with properties and methods

Beginner
Developer
Higher Education Educator
K-12 Educator
Student
Visual Studio

This module guides you through the steps required to begin building the LangtonsAnts demonstration. It sets up the application and then begins adding the classes, methods, and properties the application requires.

Note

This is a Guided Project module where you’ll complete an end-to-end project by following step-by-step instructions.

Learning objectives

After completing this module, you will be able to:

  • Create a console application

  • Create an Ant class and add properties and a constructor

  • Read user input in a loop

Prerequisites

  • Beginner level experience with a .NET editor

  • Beginner level experience with basic C# syntax rules

  • Beginner level experience with performing math operations on variables

  • Beginner level experience with creating literal values and declare variables of basic data types like string, int, and decimal

  • Beginner level experience with string concatenation and string interpolation