package com.example.interfaces;

interface FirstInterface {
	public void first();
}

interface SecondInterface {
	public void second();
}

public class MyClass implements FirstInterface, SecondInterface {

	@Override
	public void second() {
		System.out.println("This is the second method from SecondInterface");
	}

	@Override
	public void first() {
		System.out.println("This is the first method from FirstInterface");
	}

	public static void main(String[] args) {
		MyClass mc = new MyClass();
		mc.first();
		mc.second();
	}

}
