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 / 733.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-12  |  677KB  |  2550x3300
Labels: book | reckoner | sky
OCR: 12.5 C++ and OOP Inheritance 733 item is at position in the bool IsFull const; PRECONDITION none POSTCONDITION: returns true is the List object full, false if not bool IsEmpty const; PRECONDIT ION: auou POSTCON IDITION returns true if the List object empty; faise if not private: enotes Private data members omi itted First notice that the data members have not been included in the listing above. They will not be part of this discussion, and can be omitted. We will not be implementing this class, but will use the descriptions of the functions in order discuss the concept of private inheritance For this example note specifically the prototype, the precondition, and the postcondition for the function insert () It. takes two parameters: the position param- at eter is the integer to insert into ...