Krunal Parate

Krunal Parate

  • NA
  • 30
  • 13.8k

Interface

Oct 5 2015 8:11 AM
if i want to implement 2 interfaces in one class but if both interface contain same method with same name with same definaition. can we Implement it.
eg:-
interface IClass
{
int sum(int x, int y);
void mult(int x, int y);
}
interface IClass2
{
int sum(int x, int y); 
void div(int x, int y);
}
 here sum method has same name and same definition

Answers (2)