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 / 689.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-12  |  661KB  |  2550x3300
Labels: book | crt screen | poster | reckoner | sky
OCR: C++ and OOP Data Abstraction and Encapsulation 689 indicates that the function di isplay() is a member of the class Po nt In the second line annotated with // Note indicates that the function set member of the class Poi int and in the third linc anno- tated with Note states that set member of the class Poi int If the tokens Poi int: were left out of "the function header of any of the three functions, the compiler will assume that it is compiling a top level function instead of a class member function. All class member functions work on the data of the class They can access the data members and y directly Other than the use of the scope resolution operator in the function header the te1 functions look syntactically like Y. typical C function. to protect However, the it is class data importa ...