- Survey of Programming Techniques; unstructured, procedural, modular, and object-oriented programming.
- Creating a structure, setting its members and printing the structure (part 1 of 2).
- Creating a structure, setting its members and printing the structure (part 2 of 2).
- Time abstract data type implementation as a class, (part 1 of 3).
- Time abstract data type implementation as a class, (part 2 of 3).
- Time abstract data type implementation as a class, (part 3 of 3).
- Demonstrating the class member access operators and
- Time class definition
- Time class member-function definitions (part 1 of 2).
- Time class member-function definitions (part 2 of 2).
- Program to test class Time.
- private members of a class are not accessible outside the class.
- SalesPerson class definition
- SalesPerson class member-function definitions (part 1 of 2)
- SalesPerson class member-function definitions (part 2 of 2)
- Utility function demonstration
- Time class containing a constructor with default arguments.
- Time class member-function definitions including a constructor that takes arguments. (part 1 of 2)
- Time class member-function definitions including a constructor that takes arguments. (part 2 of 2)
- Constructor with default arguments. (part 1 of 2)
- Constructor with default arguments. (part 2 of 2)
- CreateAndDestroy class definition.
- CreateAndDestroy class member-function definitions.
- Order in which constructors and destructors are called. (part 1 of 2)
- Order in which constructors and destructors are called. (part 2 of 2)
- Time class definition with set and get functions.
- Time class member-function definitions,including set and get functions. (part 1 of 2)
- Time class member-function definitions,including set and get functions. (part 2 of 2)
- Set and get functions manipulating an object's private data. (part 1 of 2)
- Set and get functions manipulating an object's private data. (part 2 of 2)
- Default memberwise assignment. (part 1 of 2)
- Default memberwise assignment. (part 2 of 2)
- Time class definition with const member functions.
- Time class member-function definitions, including const member functions. (part 1 of 2)
- Time class member-function definitions, including const member functions. (part 2 of 2)
- const objects and const member functions.
- Member initializer used to initialize a constant of a built-in data type. (part 1 of 2)
- Member initializer used to initialize a constant of a built-in data type. (part 2 of 2)
- Erroneous attempt to initialize a constant of a built-in data type by assignment. (part 1 of 2)
- Erroneous attempt to initialize a constant of a built-in data type by assignment. (part 2 of 2)
- Date class definition.
- Date class member-function definitions. (part 1 of 2)
- Date class member-function definitions. (part 2 of 2)
- Employee class definition showing composition.
- Employee class member-function definitions,including constructor with a member-initializer list.
- Member-object initializers.
- Friends can access private members of the class.
- Nonfriend/nonmember functions cannot access private members. (part 1 of 2)
- Nonfriend/nonmember functions cannot access private members. (part 2 of 2)
- this pointer implicitly and explicitly used to access an object's members. (part 1 of 2)
- this pointer implicitly and explicitly used to access an object's members. (part 2 of 2)
- Time class definition modified to enable cascaded member-function calls.
- Time class member-function definitions modified to enable cascaded member-function calls. (part 1 of 3)
- Time class member-function definitions modified to enable cascaded member-function calls. (part 2 of 3)
- Time class member-function definitions modified to enable cascaded member-function calls. (part 3 of 3)
- Cascading member-function calls.
- Employee class definition with a static data member to track the number Employee objects in memory.
- Employee class member-function definitions. (part 1 of 2)
- Employee class member-function definitions. (part 2 of 2) and static data member tracking the number of objects of a class. (part 1 of 2)
- static data member tracking the number of objects of a class. (part 2 of 2)
- Implementation class definition.
- Interface class definition.
- Interface class member-function definitions and Implementing a proxy class.
- Overloaded stream-insertion and stream extraction operators. (part 1 of 2)
- Overloaded stream-insertion and stream extraction operators. (part 2 of 2)
- Array class definition with overloaded operators.
- Array class member-and friend-function definitions. (part 1 of 4)
- Array class member-and friend-function definitions. (part 2 of 4)
- Array class member-and friend-function definitions. (part 3 of 4)
- Overloaded stream-insertion and stream extraction operators. (part 4 of 2)
- Array class test program. (part 1 of 2)
- Array class test program. (part 2 of 2)
- Array class test program, output. (part 1 of 2)
- Array class test program, output. (part 2 of 2)
- String class definition with operator overloading. (part 1 of 2)
- String class definition with operator overloading. (part 2 of 2)
- String class member-function and friend-function definition. (part 1 of 4)
- String class member-function and friend-function definition. (part 2 of 4)
- String class member-function and friend-function definition. (part 3 of 4)
- String class member-function and friend-function definition. (part 4 of 4)
- String class test program. (part 1 of 2)
- String class test program. (part 2 of 2)
- String class test program, output. (part 1 of 2)
- String class test program, output. (part 2 of 2)
- Date class definition with overloaded increment operator.
- Date class member-and friend-function definition. (part 1 of 3)
- Date class member-and friend-function definition. (part 2 of 3)
- Date class member-and friend-function definition. (part 3 of 3)
- Date class test program.
- Date class test program, output.
- Standart library class string (part 1 of 2).
- Standart library class string (part 2 of 2).
- Standart library class string, output.
- Standart library class vector. (part 1 of 3)
- Standart library class vector. (part 2 of 3)
- Standart library class vector. (part 3 of 3)
- Standart library class vector, output.
- Inheritance examples
- Inheritance hierarchy for university CommunityMembers and
Inheritance hierarchy for Shapes
- Point class header file
- Point class represents an xy-coordinate pair. (part 1 of 2)
- Point class represents an xy-coordinate pair. (part 2 of 2)
- Point class test program.
- Circle class contains an xy-coordinate pair and a radius. (part 1 of 2)
- Circle class contains an xy-coordinate pair and a radius. (part 2 of 2)
- Circle class test program. (part 1 of 2)
- Circle2 class header file (part 2 of 2) and Private base-class data
can not be accessed from derived class. (part 1 of 2)
- Private base-class data can not be accessed from derived class. (part 2 of 2)
- Point2 class represents an xy-coordinate pair as protected data.
- Circle3 class header file.
- Circle3 class that inherits from class Point2.
- Protected base-class data can be accessed from derived class. (part 1 of 2)
- Protected base-class data can be accessed from derived class. (part 2 of 2)
- Point3 class header file. Point/Circle Hierarchy Using private Data
- Point3 class uses member functions to manipulate its private data.
- Circle4 class header file.
- Circle4 class that inherits from class Point3, which does not provide protected data. (part 1 of 2)
- Circle4 class that inherits from class Point3, which does not provide protected data. (part 2 of 2)
- Base class private data is accessible to a derived class via public or protected member function inherited by the derived class.
- Cylinder class header file.
- Cylinder class inherits from class Circle4 and redefines member function
getArea.
- Point/Circle/Cylinder hierarchy test program. (part 1 of 2)
- Point/Circle/Cylinder hierarchy test program. (part 2 of 2)
- Point4 class header file and Point4 base class contains a constructor
and a destructor. (part 1 of 2)
- Point4 base class contains a constructor and a destructor. (part 2of 2)
- Circle5 class header file.
- Circle5 class inherits from class Point4. (part 1 of 2)
- Circle5 class inherits from class Point4. (part 2 of 2)
- Constructor and destructor call order.
- Summary of base-class member accessibility in a derived class.
- Point class header file.
- Point class represents an xy-coordinate pair.
- Circle class header file.
- Circle class that inherits from class Point.
- Assigning addresses of base-class and derived-class objects to
base-class and derived-class pointers. (part 1 of 2)
- Assigning addresses of base-class and derived-class objects to
base-class and derived-class pointers. (part 2 of 2)
- Aiming a derived-class pointer at a base-class object.
- Attempting to invoke derived-class-only functions via a base-class
pointer. (part 1 of 2)
- Attempting to invoke derived-class-only functions via a base-class
pointer. (part 2 of 2)
- Point class header file declares print function as
virtual (upper) and Circle class header file declares print function as
virtual.
- Demonstrating polymorphism by invoking a derived-class virtual
function via a base-class pointer to a derived-class object. (part 1 of 2)
- Demonstrating polymorphism by invoking a derived-class virtual
function via a base-class pointer to a derived-class object. (part 2 of 2)
- Defining the polymorphic interface for the Shape hierarchy classes.
- Abstract base class Shape header file and Abstract base class Shape.
- Point class header file.
- Point class implementation file. (part 1 of 2)
- Point class implementation file. (part 2 of 2)
- Circle class header file and Circle class that inherits from
class Point. (part 1 of 2)
- Circle class that inherits from class Point. (part 2 of 2)
- Cylinder class header file.
- Cylinder class implementation file. (part 1 of 2)
- Cylinder class implementation file. (part 2 of 2)
- Demonstarting polymorphism via a hierarchy headed by an abstract base class. (part 1 of 3)
- Demonstarting polymorphism via a hierarchy headed by an abstract base class. (part 2 of 3)
- Demonstarting polymorphism via a hierarchy headed by an abstract base class. (part 3 of 3)
- Class hierarchy for the polymorphic employee-payroll application.
- Employee class header file.
- Employee class implementation file. (part 1 of 2)
- Employee class implementation file (part 2 of 2) and SalariedEmployee class
header file.
- SalariedEmployee class implementation file.
- HourlyEmployee class header file.
- HourlyEmployee class implementation file.
- CommissionEmployee class header file.
- CommissionEmployee class implementation file.
- BasePlusCommissionEmployee class header file.
- BasePlusCommissionEmployee class implementation file.
- Employee class hierarchy driver program.(part 1 of 2)
- Employee class hierarchy driver program.(part 2 of 2)
2004-07-29