Definition
Defines a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically.
Definition Defines an interface for creating an object, but lets subclasses decide which class to instantiate. The Factory Method lets …
Definition Defines a family of algorithms, encapsulates each one, and makes them interchangeable. Strategy lets the algorithm vary independently from …
Defines a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically.
In today’s tutorial, we are going to make a simple address book in C#. We will see how to create lists and arrays and use them in a real world application such as this simple address book. I am also going to be trying something new with this tutorial where I am asking you to implement what is missing.
In this tutorial, I will show you how to create a simple change calculator in C# using Visual Studio. I will show you how to take any dollar amount and calculate exactly how many bills and coins to give back. By the end of this tutorial, you will be able to run your change calculator and calculate the bills and coins (in US dollars) that amount equals.