Object-Oriented Programming in C# .NET
Learn the object-oriented programming in C# .NET from the first object-oriented app to advanced .NET framework structures in this online course.
In this tutorial, we'll introduce object-oriented programming, explain it's historical origins as well as terms such as classes, attributes, and methods.
Written by David Capka
In this tutorial we'll create our first object-oriented app in C# .NET - Hello object world. We'll create classes, attributes and parametrized methods.
Written by David Capka
Solved programmer tasks in C# .NET on the basics of object-oriented programming. Tasks are ordered by difficulty. Solutions are available for download.
Written by David Capka
In this tutorial, we'll learn how to use constructors and random number generators. We'll program a rolling die in C# .NET, as the first part of our arena.
Written by David Capka
Solved programmer tasks in C# .NET on constructors, encapsulation, and "Random". Tasks are ordered by difficulty. Solutions are available for download.
Written by David Capka
In this tutorial, we'll explain in detail how C# .NET works with references (objects) and value data types in memory.
Written by David Capka
Solved programmer tasks in C# .NET on object references and the null value. Tasks are ordered by difficulty. Solutions are available for download.
Written by David Capka
Lesson 5
Warrior for the arena in C# .NET
In this C# .NET tutorial, we'll create a warrior object (class). Its instances will battle in the arena next time.
Written by David Capka
Lesson 6
Arena with warriors in C# .NET
In this tutorial, we'll finish our arena with warriors. As a result, we'll have an object-oriented application simulating a board game.
Written by David Capka
In this tutorial, we'll go over object inheritance and polymorphism. We'll learn how to reuse code and explain what the protected access modifier is.
Written by David Capka
In this C# .NET lesson, you'll learn how to call base constructors, override methods and put what you know about inheritance and polymorphism to the test.
Written by David Capka
Solved programmer tasks in C# .NET on inheritance and polymorphism. Tasks are ordered by difficulty. Solutions are available for download.
Written by David Capka
Lesson 9
Static class members in C# .NET
In this C# lesson, we'll learn how to use static fields, methods, and constructors. We'll even get to create our own static class - a static registry.
Written by David Capka
Solved programmer tasks in C# .NET on static attributes and methods. Tasks are ordered by difficulty. Solutions are available for download.
Written by David Capka
Lesson 10
Properties in C# .NET
In this C# .NET tutorial, we'll introduce properties (auto-implemented getters and setters) that will provide better object encapsulation.
Written by David Capka
Lesson 11
Date and time in C# .NET
In this tutorial, we'll learn how to work with date and time in C# .NET. We'll discover new DateTime and TimeSpan classes. We'll create some sample apps.
Written by David Capka
Solved programmer tasks in C# .NET on the topic of date and time. Tasks are ordered by difficulty. Solutions are available for download.
Written by David Capka
Lesson 12
Lists in C# .NET
This tutorial introduces the List collection in C# .NET into which we can easily add and remove items. We'll create a sample app and cover some methods.
Written by David Capka
Lesson 13
Diary with a database in C# .NET
In this tutorial, we'll create an electronic diary with a database using the List collection. It'll be able to add, remove and search entries.
Written by David Capka
Solved programmer tasks in C# .NET on the topic of List collections. Tasks are ordered by difficulty. Solutions are available for download.
Written by David Capka
Lesson 14
Interfaces in C# .NET
In this tutorial you'll learn about interfaces, how to auto-implement them with Visual Studio, and how to replace multiple inheritances with them.
Written by David Capka
You'll learn how to cast an instance to another data type using interfaces. You will also learn about and create an object hierarchy.
Written by David Capka
This tutorial explains abstract classes in C# .NET. You'll learn about interfaces, implement your own comparing with IComparable, and overload operators.
Written by David Capka
Solved programmer tasks in C# on interfaces, abstract classes, and operators. Tasks are ordered by difficulty. Solutions are available for download.
Written by David Capka
This tutorial is about indexer overloading, the Equals method as well as the == operator, constants, enumerated types (enums) and flags.
Written by David Capka
In this lesson, you will learn about delegates in C# .NET, learn how to define anonymous methods and work with lambda expressions.
Written by David Capka
Solved programmer tasks in C# .NET on the topics of enums, indexers and delegates. Tasks are ordered by difficulty. Solutions are available for download.
Written by David Capka
Lesson 19
Events in C# .NET
In this tutorial, we'll introduce events and the EventHandler delegate. As an example, we will have a listener react to instance changes.
Written by David Capka
Solved programmer tasks in C# .NET on the topic of declaring and inheriting events. Tasks are ordered by difficulty. Solutions are available for download.
Written by David Capka
In this tutorial, we'll discuss structures, boxing, partial members, and methods in detail in C# .NET.
Written by David Capka
This tutorial is the last of the object-oriented programming in C# .NET course. We'll discuss nullable types, cloning, attributes, destructors and more.
Written by David Capka
Lesson 22
Records in C# .NET
The C# .NET tutorial is about records - a reference type that provides pre-made methods for ensuring equality of values.
Written by Filip Smolík
Lesson 23
Tuple and ValueTuple in C# .NET
In the C# .NET tutorial we'll introduce the ValueTuple structure and the Tuple class, including the complete syntax and examples.
Written by Filip Smolík
Test yourself online! Results of the C# .NET OOP knowledge quiz, table of the best network members.
Written by David Capka
C# .NET Community Projects - Object-Oriented Programming
Section 7 Items
A collection of C# .NET OOP apps with source codes from local programmers. Sources are not verified as in the courses and their quality may vary.