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 / 767.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-13  |  546KB  |  2550x3300
Labels: book | reckoner | sky
OCR: C++ Elements Introduced in This Chapter: A Review 767 Language Review /Member funct ions /Data members /Access speci fiers Class Data members Declared like members ofa struct nt Class Member Functions Declared with a function prototype bool set int valb int const return X Access Specifiers publ ic can be accessed outside of the class declaration ad vate: can only be accessed by class member functions and friend functions Scope Resolution Operator Used to indicate class membership Used in member function implementations void Point display const //a member of Point Constructors 0 Same name as the class no return type 00 invI tem( ;// Default Constructor invItem( const invItem& item //Copy Constructor invItem char int the num Called automatically a instantiation to initialize data members Des ...