I'm new to patterns and am trying to understand the concept of using interfaces to prevent tight coupling. I have created a class:
public interface Imul
{
int multi(int a, int b);
}
I implemented this interface in a separate mul
class:
public class mul: Imul
{
public int multi(int a, int b) => return a * b;
}
Now here is my problem: in the main program how should I write it to understand the concept of in-dependency?
static void Main(string[] args)
{
// Implementation
}