13.07.2015 Views

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

12.13 Exercises293Example 12.2 The User classpackage net.multitool.core;import net.multitool.util.*;import java.util.*;public classUser{private String name;private Account home;// TODO: implementpublicUser(String username){name = username;}public StringtoString(){return name;}} // class User3. A new requirement is added. The system must allow for books, audiorecordings, and movies to be checked out for different lengths of time.Did you add classes? Did you add methods and/or members? To whichclasses did you add them?

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!