Chapter 3 Object-Oriented Programming
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
Exercises
Exercise 3.1 Define a class and namespace to manage a road trip
In this lab, you will define a class and namespace to manage a road trip.
Exercise 3.2 Planning a Road Trip
Here, you will add fields to your class to store information about the trip.