Interfaces – An Article

Really great article describing the importance of interfaces and example usage in software and in the real world. An interface can be though of as a contract between the system and the environment. ┬áIn a computer program, the ‘system’ is the function or module in question, and the ‘environment’ is the rest of the project.…

Class Factory Pattern (C++)

What exactly is class factory? Let’s say you were to build a car dealership simulation/application. You have an purely abstract base class called Car (or Auto). You have a manager class called Dealership, that manages all aspects of the facility, such as clients, car inventory, employees, and records of transactions. Let’s also assume that this…

Interfaces in C#.Net

In C#, if you wanted to do multiple inheritance like that in C++, its not allowed. However, there is a workaround or another way to do this, by creating a class interface. An interface can have methods, properties and indexers, but no implementation is allowed. Only in the class object that the interface is being…