when do we use extends in java code example
Example: public class extends implements java
extends is for extending a class.
implements is for implementing an interface
extends is for extending a class.
implements is for implementing an interface