Listing 11: Inherits from Update


//EmpUpdate.h

#if !defined(EMP_UPDATE_H)
#define EMP_UPDATE_H

#include "Update.h"
#include "EmpQuery.h"

class Employee;
class Connection;

class EmpUpdate : public Update
{
    friend class Employee;

public:
    void edit(const Employee&);
    long getID() const;

protected:
    EmpUpdate(Connection*, long id);
    CString getIDTable() const;
};

inline CString EmpUpdate::getIDTable() const
{
    // Table with next available Object ID
    return "[Employee ID]";
}

#endif
/* End of File */