Object-Oriented Programming in VB.NET
Learn the object-oriented programming in Visual Basic in this online course from the first object-oriented app to advanced .NET framework structures.
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 Michal Zurek
In this tutorial we'll create our first object-oriented app in VB.NET - Hello object world. We'll create classes, fields and parametrized methods.
Written by Michal Zurek
Solved programmer tasks in VB .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 VB.NET, as the first part of our arena.
Written by Michal Zurek
Solved programmer tasks in VB .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 Visual Basic .NET works with references (objects) and value data types in memory.
Written by Michal Zurek
Solved programmer tasks in VB .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 VB.NET
In this Visual Basic .NET tutorial, we'll create a warrior object (class). Its instances will battle in the arena next time.
Written by Michal Zurek
Lesson 6
Arena with warriors in VB.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 Michal Zurek
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 Michal Zurek
In this VB.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 Michal Zurek
Solved programmer tasks in VB .NET on inheritance and polymorphism. Tasks are ordered by difficulty. Solutions are available for download.
Written by David Capka
Lesson 9
Shared class members in VB.NET
In this VB lesson, we'll learn how to use shared/static fields, methods, and constructors. We'll even get to create our own static class - a registry.
Written by Michal Zurek
Solved programmer tasks in VB .NET on static attributes and methods. Tasks are ordered by difficulty. Solutions are available for download.
Written by David Capka
Lesson 10
Properties in VB.NET
In this Visual Basic .NET tutorial, we'll introduce properties (auto-implemented getters and setters) that will provide better object encapsulation.
Written by Michal Zurek
Lesson 11
Date and time in VB.NET
In this tutorial, we'll learn how to work with date and time in Visual Basic and discover new DateTime and TimeSpan classes. We'll create some sample apps.
Written by Michal Zurek
Solved programmer tasks in VB .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 VB.NET
This tutorial introduces the List collection in VB.NET into which we can easily add and remove items. We'll create a sample app and cover some methods.
Written by Michal Zurek
Lesson 13
Diary with a database in VB.NET
In this VB.NET 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 Michal Zurek
Solved programmer tasks in VB .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 VB.NET
In this tutorial you'll learn about interfaces in Visual Basic, auto-implement them with Visual Studio, and how to replace multiple inheritances with them.
Written by Michal Zurek
You'll learn how to cast an instance to another data type using interfaces in Visual Basic .NET. You will also learn about and create an object hierarchy.
Written by Michal Zurek
This tutorial explains abstract classes in Visual Basic. We'll learn about interfaces, implement custom comparing with IComparable, and overload operators.
Written by Michal Zurek
Solved programmer tasks in VB on interfaces, abstract classes, and operators. Tasks are ordered by difficulty. Solutions are available for download.
Written by David Capka
This Visual Basic tutorial is about indexer overloading, the Equals() method as well as the = operator, constants, enumerated types (enums) and flags.
Written by Michal Zurek
In this lesson, you will learn about delegates in Visual Basic .NET, learn how to define anonymous methods and work with lambda expressions.
Written by Michal Zurek
Solved programmer tasks in VB .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 VB.NET
In this tutorial, we'll introduce events and the EventHandler delegate in Visual Basic. As an example, we will have a listener react to instance changes.
Written by Michal Zurek
Solved programmer tasks in VB .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 VB .NET.
Written by Michal Zurek
This tutorial is the last of the object-oriented programming in VB.NET course. We'll discuss nullable types, cloning, attributes, destructors and more.
Written by Michal Zurek