home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgLangD.iso / C++-7 / DISK4 / SAMPLES / CPPTUTOR / PERSINFO.H$ / PERSINFO
Encoding:
Text File  |  1991-12-11  |  539 b   |  25 lines

  1. // PERSINFO.H
  2.  
  3. // This is an example class from Chapter 4 of the C++ Tutorial. This
  4. //     class demonstrates member objects and the member-initializer
  5. //     syntax for initializing a constant member object.
  6.  
  7. #if !defined( _PERSINFO_H_ )
  8.  
  9. #define _PERSINFO_H_
  10.  
  11. #include "date.h"
  12.  
  13. class PersonInfo
  14. {
  15. public:
  16.     PersonInfo( const char *nm, const char *addr, int mn, int dy, int yr );
  17. private:
  18.    char name[30];
  19.    char address[60];
  20.    const Date birthday;     // Constant member object
  21. };
  22.  
  23. #endif  // _PERSINFO_H_
  24.  
  25.