interface Shape { public abstract void sides(); } public class Square implements Shape { public void sides() { System.out.println("I have four sides!"); } public class Triangle implements Shape { public void sides() { System.out.println("I have three sides!"); } }