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 / 695.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-12  |  660KB  |  2550x3300
Labels: book | poster | reckoner | sky
OCR: Abstraction and Encapsulation 695 12.3 ++? and OOP Data ere true will ive be returned If will change be amt true is ed negati the return value ling anup is if num avail abl able- equal tchange to be amt num The new avail able value greater or of num ava and change avail amt abl cha change ange amt amt is also negat ive negati and ive, num on the return value will be false and on amt will rema in unchanged change bool changeId( char *newId ; null terminated Note PRECOND ITION newId should be style string POSTCONDITION: The has been changed to newId, the return value true const char getId() const return id; Note 8 // PRECONDITION: none POSTCONDITION: the return value is the item' id ote2 int whatsLeft) const return num avail able, PRECONDITION: none POS' TCONDITION: the return value is rum a ...