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

../Installing

Adding a new catagory:

Adding slots to globals

We'll add two slots to globals, in a new category. To add a new subcategory, we use the `Add category' middle-button menu item on an existing category.

Then, we add two new data slots into that category, called bankAccount and stockAccount.

We'll make the slots constant, having them initially refer to new, empty objects. The syntax for a new, empty object is an empty pair of parentheses:

	bankAccount = () 

[ 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.