Select from following answers:- Yes

- No
- Maybe
- All Above
Yes, we can inherit multiple interfaces into an Interface and further we can implement the Last Interface into a class. For example :-
interface Interface1
{
public void displayA();
}
interface Interface2
{
public void displayB();
}
interface MainInterface : Interface1, Interface2
{
public int displayNumber();
}
class MyClass : MainInterface
{
public int displayNumber()
{
throw new NotImplementedException();
}
public void displayA()
{
throw new NotImplementedException();
}
public void displayB()
{
throw new NotImplementedException();
}
}
Thanks and Regards
Akiii
Show Correct Answer
|
Alert Moderator