public class1Student { private String firstName; private String lastName; private int credits; public void foo() {2CODING HERE } } //end Student public class3Planet { String name; int radius; //miles public void foo() {4CODING HERE } }
public class1Person { private String2firstName; private String lastName; public Person(String aFirstName, String aLastName) {3this.firstName = aFirstName; this.lastName = aLastName; }
public class1Person { private String firstName; private String lastName; public Person(String aFirstName, String aLastName) { this.firstName = aFirstName; this.lastName = aLastName; } public void setNames(String aFirstName, String aLastName) { this.firstName = aFirstName; this.lastName = aFirstName; } public String2getFullName() { String fullName; fullName = this.firstName + " " + lastName; return fullName; } public String toString() { return "Person: " +3this.getFullName(); } }