Questions : Can you im plement multiple interfaces in C#? What is a namespace in C#? Explain the c oncept of encapsulation. What is a constru ctor in C#? Differentiate betw een a class and an object. C# : Interview questions (11-15) Answers : Implementing Multiple Interfaces in C#: Yes, C# allows a class to implement multiple interfaces, enabling it to define behaviour specified by each interface. Multiple interfaces can be separated by commas in the class declaration. interface IShape { void Draw () ; } interface IMovable { void Move () ; } class Circle : IShape , IMovable { public void Draw () { Console.WriteLine( "Drawing a circle..." ); } public void Move () { Console.WriteLine( "Moving the circle..." ); } } In this example, the Circle class implements both the IShape and IMovable interfaces, providing concrete implementations for the Draw and Move methods defined by each interfac...
Read - Revise - Recollect