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
- Determine classes and relationships in a program
- Create a class with fields to maintain state
- 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.
-
Define a class and namespace to manage a road tripExercise
In this lab, you will define a class and namespace to manage a road trip. -
Planning a Road TripExercise
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.