import java.io.*; class HispanicName extends Name { //use super class to hold first appelado (the "real" last name) // public HispanicName (String fName, String firstAppel, String secondAppel){ super(firstAppel); firstName = fName; scdAppelado = secondAppel; } /* step 3 public String getInitials() { String s; s = firstName.substring(0,1) + super.getInitials() + scdAppelado.substring(0,1); return s; } // Informal name is first name and first appelado // public String getName() { return firstName + " " + super.getName(); } // In formal name, first and second appelados should be hyphenated // public String getFormalName() { return super.getTitle() + firstName + " " + super.getName() + "-" +scdAppelado; } public void print(PrintStream ps) { ps.print(getFormalName()); } step 3 */ private String firstName; private String scdAppelado; }