Help the world stop coronavirus! Stay home!

Prev Next

Java / Enum

Can an enum implement an interface?


interface IJob {

	void jobRole();


public enum Job implements IJob {

	JOB1(50) {

		void whoAmI() {
			System.out.println("I am a Software Tester.");


		public void jobRole() {
			System.out.println("My role is to Test the Software applications to assess quality.");



	int payPerHour;

	Job(int payPerHour) {
		this.payPerHour = payPerHour;

	abstract void whoAmI();


❤Cash Back At Stores you Love !!!❤

Earn your $10 reward when you make your first purchase through Ebates by signing up with clicking below button.

Ebates Coupons and Cash Back

More Related questions...

Show more question and Answers...


Comments & Discussions