enum class can implement an interface in java but it can not extend a class.

Methods in interface can also be overridden in enum classes.

The below example demonstrates this fact.

Employee.java

package com.masterjavatutorial;

public interface Employee {
	
	public int getSalary();
	 
}

EMPLOYEE_TYPES.java

package com.masterjavatutorial;
public enum EMPLOYEE_TYPES implements Employee{

	 EMPLOYEE,MANAGER,VP,CEO;

	@Override
	public int getSalary() {
		return 2000;
	}
	
}

Test.java

package com.masterjavatutorial;
public class Test {
	
     public static void main(String[] args) {
         Employee emp = EMPLOYEE_TYPES.EMPLOYEE;
         int salary = emp.getSalary();
         System.out.println("Salary="+salary); 
    }

}

Output of the above program is as below:

Salary=2000