CSharp - What is the output: interface sealed

Question

is the following code having compile time error

using System;

sealed interface IMyInterface
{

    void Show();
}
class Program
{
    static void Main(string[] args)
    {
        //some code
    }
}


Click to view the answer

Compile time error

Note

If you make the interface sealed, who can implement the interface?

Related Quiz