Skip to Content Java Solaris Communities Partners My Sun Sun Store United States Worldwide

»  Spotlight Articles
»  Projects
»  Publications
»  People
»  Awards
»  Events
»  Downloads
»  Internships
»  Contrarian Minds
»  About Sun Labs

Testing the factored bank account

Testing a copy of the bank account

Testing out the factored bank account

We can verify that deposit: and withdraw: still work as expected. Also, we can make a copy of the bank account and test that it uses the shared definitions of these methods.

Note that the default copy operation copies only the local object; a `shallow' copy. The copy refers to the same traits object.


[ Previous ] [ Index ] [ Next ]
Would you recommend this Sun site to a friend or colleague?
Contact About Sun News Employment Privacy Terms of Use Trademarks Copyright 1994-2008 Sun Microsystems, Inc.