Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 15. Case Study 2—An Inventory Table > 15.10 IMPLEMENTING THE SYSTEM

15.10 IMPLEMENTING THE SYSTEM

The model is implemented in the same way as the Hashtable class in Chapter 7. Code fragments follow, but the entire source code is given in Section 15.18 and in the software bundle accompanying this book.

The first decision is for an appropriate product record. In C and C++, a record can be defined as a struct with the appropriate fields. In Java, we shall use a class Product with the three attributes code, name and instock.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial