hope this helps you to find out a bit what I learned in oops (core java) during my collage.
Implements a notation that defines the implementation for interface methods. However, interfaces have no implementation, so this is not possible. However, an interface can extend another interface, which means that it can add additional methods and inherit its type.
here is an example below, this is my understanding and what i learned in oops ..!
interface ParentInterface{ void myMethod(); } interface SubInterface extends ParentInterface{ void anotherMethod(); }
and keep one in mind, one interface can expand only another interface, and if you want to define its function on some class, then only the interface implemented, for example, below
public interface Dog { public boolean Barks(); public boolean isGoldenRetriever(); }
Now, if the class was to implement this interface, it would look like this:
public class SomeClass implements Dog { public boolean Barks{
and if an abstract class has a certain abstract function, define and declare, and you want to define this function, or you can say that you are implementing this function, then you intend to extend this class because the abstract class can be extended. here is an example below.
public abstract class MyAbstractClass { public abstract void abstractMethod(); }
Here is an example of a subclass of MyAbstractClass:
public class MySubClass extends MyAbstractClass { public void abstractMethod() { System.out.println("My method implementation"); } }