Object-oriented Programming in C#
C# is an object-oriented and strongly-typed language. This course will teach you how to design and build your classes and class hierarchies using OO principles.
What you'll learn
Object-orientation allows us to map real-world objects to classes and objects in code. In this course, Object-oriented Programming in C#, you’ll learn to how to write C# code following OO principles. First, you’ll explore how to translate business requirements into a class model, applying abstraction and encapsulation. Next, you’ll discover how to create a class hierarchy through the use of C# inheritance. Finally, you’ll learn how to create and use interfaces, another type built-in to C#. When you’re finished with this course, you’ll have the skills and knowledge of write object-oriented C# code needed to create and maintain any real-world C# application.
Table of contents
- Module Introduction 1m
- Creating the Product Class 8m
- Demo: Creating the Class 5m
- Adding Functionalities 3m
- Demo: Adding Methods 5m
- Introducing Properties 5m
- Demo: Adding Properties 5m
- Creating Objects with Constructors 3m
- Demo: Adding Constructors 2m
- Introducing Method Overloading 2m
- Demo: Overloading Methods 4m
- The this Keyword 2m
- Demo: Adding this 1m
- Using Primary Constructors 2m
- Using Composition 2m
- Demo: Adding the Price Class 4m
- Splitting into Partial Classes 2m
- Demo: Partial Classes 2m
- Demo: Adding the Order Class 3m
- Summary 1m
- Module Introduction 2m
- Working with Objects 6m
- Demo: Using Object Initialization 4m
- Demo: Using Object Initialization 3m
- Adding Static Members 3m
- Demo: Adding Static Members 3m
- Demo: Exploring the Interface of the Application 11m
- Adding Support for Loading Data 2m
- Demo: Loading Data from a File 5m
- Writing Tests for the Class 4m
- Demo: Adding Unit Tests 7m
- Summary 1m
- Module Introduction 1m
- Adding Inheritance 11m
- Demo: Adding Inheritance 7m
- Inheriting from System.Object 4m
- Demo: Inheriting from System.Object 1m
- Working with Polymorphism 9m
- Demo: Using Polymorphism 10m
- More on Polymorphism 6m
- Exploring Abstract and Sealed Classes 5m
- Demo: Converting to an Abstract Class 4m
- Demo: Using Sealed 2m
- Using Extension Methods 3m
- Demo: Using Extension Methods 3m
- Summary 1m
- Module Introduction 2m
- Understanding Interfaces 5m
- Demo: Creating an Interface 3m
- Implementing and Using Interfaces 2m
- Demo: Implementing Multiple Interfaces 1m
- Exploring Built-in Interfaces 2m
- Demo: Implementing ICloneable 4m
- Interfaces and Polymorphism 1m
- Demo: Using Polymorphism with Interfaces 4m
- Course Closing 1m