home *** CD-ROM | disk | FTP | other *** search
/ C by Discovery (4th Edition) / C_By_Discovery_4th_Edition.tar / C_By_Discovery_4th_Edition / CH_12 / 696.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-12  |  803KB  |  2550x3300
Labels: book | reckoner | sky
OCR: 696 Chapter Discovering C++ Note 1: The data members for this class are a char member named d and an int member named num avai ab The member num ava lable will keep the current number of items in inventory. The member will point to an array that contains null terminated string the identifier for the item. cated in The the memory constructors. for the For null reasons terminated of string simplicity will we be have dynamically not included allo- other fields that might be appropriate for the actual use of this class Note 2 This is8 prototype of i constructor. The name of the function 1 the same as the name of the class There no return type (not even d) for this func- tion This constructor takes no parameters Itis called default constructor We will see examples of object declarations that ca ...