Introduction
Lesson 1 of 12 in Coddy's Basics of Classes and Objects in C# course.
C# is an object-oriented programming (also known as, OOP) language.
Object-oriented programming is all about creating classes and objects that contain both data and methods.
What are classes and objects?
A class is a template for objects, and an object is an instance of a class.
Let's see some examples:
| Class | Object(s) |
| Animal | Cow |
| Monkey | |
| Turtle | |
| Person | Bob |
| John | |
| Alice | |
| Car | Toyota |
| Volvo | |
| Tesla |
When the individual objects are created, they inherit all the variables and methods from the class.
Let's dive deeper!
This lesson includes a short quiz. Start the lesson to answer it and track your progress.
This lesson includes a short quiz. Start the lesson to answer it and track your progress.
Try it yourself
This lesson doesn't include a code challenge.
All lessons in Basics of Classes and Objects in C#
1Introduction
Introduction