package org.example; interface Contact { void displayContactInfo(); // using class email display email // using class phone display phone } // Contact // Email Class class EmailContact implements Contact { private String email; //Constructor public EmailContact(String email) { this.email = email; // EmailContact("philipm@onlc.com") } // constructor @Override public void displayContactInfo() { System.out.println("Email Address: " + email); } }