Implicit and Explicit Interface Implementation using C#

Hello guys, An interface in C# is usually used to create loosely-coupled and contract-based designs. It can contain signatures (declarations) of the Methods, Properties, Indexers and Events. The implementation of the methods/properties and so on is done in the class that implements the interface. An interface can inherit one or more interfaces, in other words it… Continue reading Implicit and Explicit Interface Implementation using C#

Calculate Fibonacci Series using C# programming

Hello mates, This is one of the most asked question in interviews, calculating and printing Fibonacci series. Let’s first try the iterative approach that is simple and prints all the Fibonacci series by passing the length. Please note that we are starting the series from 0 (instead of 1). public static voidFibonacci_Iterative(int len) {     int a = 0, b = 1, c = 0;     Console.Write(“{0} {1}”, a,b);     for (int i = 2; i < len; i++)     {         c= a + b;… Continue reading Calculate Fibonacci Series using C# programming