<<< Fundamental properties of built-in types     Index     User-defined type >>>

9. C++ program fundamentals


  • New concept:

    • bring together some functions and variables;

    • make such combination as a new C++ type.

  • 
    class Date {
        int serial_date; // variable
    public:
        // functions
        void set_date( int month, int day, int year );
        int get_month();
        int get_day();
        int get_year();
    };
    
    

<<< Fundamental properties of built-in types     Index     User-defined type >>>