2.3 Design the CPerson Data Object

This section explains the first step in writing the DMTEST program: design the data and prepare two code files. You'll create an interface file for the data model called PERSON.H and an implementation file called PERSON.CPP. The process will be described in two main steps with several substeps:

1.Create the interface file.

A.Create a file PERSON.H and add directives.

B.Add a class declaration.

C.Add an #endif directive.

2.Create the implementation file.

A.Create a file PERSON.CPP and add directives.

B.Add macro invocations.

C.Add member function definitions.