Suppose we have one class implements Interface extends abstract class with same abstract function in both Interface and abstract class. Then class inherit which function Interface or abstract class and why.

Like:

```
public class A extends B implements I
{
    public void set()
    {
         // Some code here
    }
}

```

Interface:

```
public interface I {
    public void set();
}

```

abstract Class:

```
 public abstract class B
 {
      public abstract void set();    
 }

```