CSharp - What is the output: interface with inner type


What is the output from the following code

interface IMyInterface
      void Show();
      class A { }

Click to view the answer

Compile time error


We cannot define any fields, constructors, or destructors in an interface.

Nesting of types (e.g., class, interface, enumeration, and structs) is not allowed.

Related Quiz