A developer designs an interface that contains the following code:

HOTSPOT
A developer designs an interface that contains the following code:

For each of the following statements, select Yes if the statement is true. Otherwise, select No.

HOTSPOT
A developer designs an interface that contains the following code:

For each of the following statements, select Yes if the statement is true. Otherwise, select No.

Answer:

Explanation:



Leave a Reply 3

Your email address will not be published. Required fields are marked *


J

J

YES,YES,NO

public class Program
{
public static void Main(string[] args)
{
//Class2 class2 = new Class2();
//((INewInterface)class2).Method1();

Class1 class1 = new Class1();
((INewInterface)class1).Method1();
}
}

public class Class1 : Class2{}
public class Class2 : INewInterface{
void INewInterface.Method1(){
throw new NotImplementedException();
}
}
public interface INewInterface{
void Method1();
}

Guru

Guru

yes, yes, no