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 / 687.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-12  |  828KB  |  2550x3300
Labels: book | reckoner | sky
OCR: C++ and OOP Data Abstraction and Encapsulation 687 12.3 Note Note 5 The data for c1 .ass Point to be consists type int of so the that X and they will coordinates represent of a point We have chosen them tances on a terminal screen. They are in the private section; only member Jor functions are allowed to access them. (There are no friend functions this first example of a class.) Note 7 The declaration of class data members starts is with the syntactically type JO the the data same as fol- the declaration of any other data. lowed by comma Separated list of variable names; each declaration terminated b semicolon However, it is not possible tc initialize class data members in the class declaration Note 8 Note 6: In this example, the class functions appear in are the either public declared sec ...