Homework/HW03/ListNode.cc
ListNode *ListNode::getNext()
{
    if (this) // check if we even have a target object
        return next;
    else        
    {
        cerr << "Accessing a NULL pointer. Terminating program now." << endl;
        exit(1);
    }
}
// Get the value of next. Accessor method.
Get the value of next. Accessor method.
Get the value of next . Accessor method .
ListNode *ListNode::getNext()
{
    if (this) 
        return next;
    else        
    {
        cerr << "Accessing a NULL pointer. Terminating program now." << endl;
        exit(1);
    }
}
ListNode * ListNode :: getNext ( ) { if ( this ) return next ; else { cerr << " " << endl ; exit ( 1 ) ; } }
Get the value of next.
Get the value of next .
// check if we even have a target object