Show an example of a class definition that creates a subclass of an existing Employee class, and adds a private double field called commissionRate. What is the total set of fields that an instance of the new class contains?

What will be an ideal response?


The class definition provided should be similar to the following:
class CommissionEmployee : Employee
{
private double commissionRate;
}
Each CommissionEmployee object automatically contains the data fields of the base class (Employee in this case) plus any new fields that are added (commissionRate in this case).

Computer Science & Information Technology

You might also like to view...

You can adjust an image by manipulating the sliders at the ____ of the histogram.

A. top B. left C. bottom D. right

Computer Science & Information Technology

The Insert WordArt button is on the ________ tab of the Ribbon

A) Page Layout B) View C) Insert D) Home

Computer Science & Information Technology

The ____ command is a good choice when the object you are selecting is quite distinct from the background it is on, but may not work as well when the background has colors within the range of the object’s colors.

a. Select Background b. Select Adjacent c. Select Distinct d. Grow

Computer Science & Information Technology

A major risk exposure in the expenditure cycle is that accounts payable may be overstated at the end of the accounting year.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology