Before you begin

This is a Xamarin cross-platform class about C#. You can use either Visual Studio for Mac or Visual Studio for Windows. Please read the setup requirements if you need help installing the Xamarin development environment.

Overview

This course introduces Object-Oriented Programming (OOP) and classes in C#. It begins with OOP theory and then implements classes containing fields and methods to put the concepts into practice.

Objectives

  1. Determine classes and relationships in a program
  2. Create a class with fields to maintain state
  3. Use enumerations to define constant values

Lecture

Learning C# with Xamarin: Object-Oriented Programming

Exercises

Exercise materials are available from GitHub. The code can be cloned through a desktop Git client or downloaded directly as a ZIP file.

  1. Define a class and namespace to manage a road trip
    Exercise
    In this lab, you will define a class and namespace to manage a road trip.
  2. Planning a Road Trip
    Exercise
    Here, you will add fields to your class to store information about the trip.

Homework

Homework
This optional homework assignment will give you additional practice with classes, fields, and methods.