implements vs extends code example
Example 1: extends vs implements java
both are used for inheriting
extends:
class extends class
interface extends interface
implements:
class implements interface1, Interface2 …
Example 2: public class extends implements java
extends is for extending a class.
implements is for implementing an interface