/*
 * NickPerson class
 * 
 * This class represents a person with an additional nick name. It extends
 * the Person class.
 */
 
 
/**
 * Constructor
 */
 
function NickPerson(firstName, lastName, nickName)
{
    // Call parent constructor
    Person.call(this, firstName, lastName);
    
    // Initialize properties
    this.nickName = nickName;
}
NickPerson.inherit(Person);


/**
 * Returns a string representation of the person
 */

NickPerson.prototype.toString = function()
{
    return Person.prototype.toString.call(this) + " (" + this.nickName + ")";
};

