Homework/HW03/ListNode.cc
int ListNode::getDatum()
{
    if (this) // check if we even have a target object
        return datum;
    else        
    {
        cerr << "Accessing a NULL pointer. Terminating program now." << endl;
        exit(1);
    }
}
// Set and get the private attributes.
// Get the value of the datum. Accessor method.
Set and get the private attributes.
Get the value of the datum. Accessor method.
Set and get the private attributes . Get the value of the datum . Accessor method .
int ListNode::getDatum()
{
    if (this) 
        return datum;
    else        
    {
        cerr << "Accessing a NULL pointer. Terminating program now." << endl;
        exit(1);
    }
}
int ListNode :: getDatum ( ) { if ( this ) return datum ; else { cerr << " " << endl ; exit ( 1 ) ; } }
Set and get the private attributes.
Set and get the private attributes .
// check if we even have a target object