/ Implementation file for class FractionType



Review of Class

A) Class Declaration:

Form:

Class ClassName

{

Public:

Declarations of public members

Private:

Declarations of private members

};

Note:

i) Declarations of the data members are normally placed in the private section and declarations(prototypes) of the function members are placed in the public section;

ii) Public members can be accessed by both member and nonmember functions.

iii) Private members can be accessed only by member functions and by friend functions

B) example of classes

Example 1:

// SPECIFICATION FILE ( Time.h )

#ifndef TIME_HEADER

#define TIME_HEADER

#include

class Time

{

friend

std::ostream& operator ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download