//
// CommissionEmployeeTest.java
// Testing class CommissionEmployee
//
// Nadeem Abdul Hamid (based on Deitel & Deitel Ch. 9)
// CSC 121 - Spring 2005
//

public class CommissionEmployeeTest {

    public static void main( String args[] ) {
	// instantiate CommissionEmployee object
	CommissionEmployee empl 
	    = new CommissionEmployee( "Sue Jones", 10000, 0.06 );

	// get commission employee data
	System.out.println( "Employee info obtained by get methods: \n" );
	System.out.println( "Name is " + empl.getName() );
	System.out.println( "Gross sales are " + empl.getSales() );
	System.out.println( "Commission rate is " + empl.getRate() );

	empl.setSales( 500 ); 
	empl.setRate( .1 );

	System.out.println( "\nUpdated employee info obtained by toString:\n\n" 
			    + empl + "\n" );
    } // end main

} // end class CommissionEmployeeTest
