}
/**
+ * Creates a copy of a profile.
+ *
+ * @param profile
+ * The profile to copy
+ */
+ public Profile(Profile profile) {
+ this.username = profile.username;
+ }
+
+ /**
* Returns the name of the user this profile belongs to.
*
* @return The name of the user this profile belongs to
*/
- public String username() {
+ public String getUsername() {
return username;
}