CSharp - Will the code compile: extend System.Delegate

Question

Will the code compile


using System;

namespace Test1_Delegate
{
    public delegate int MultiDel(int a, int b);
    class A : System.Delegate{
    
    }

}


Click to view the answer

No.

Note

We cannot derive from the Delegate class.

Related Quiz