Describe and illustrate using an example the process of attribute inheritance.

What will be an ideal response?


An entity in a subclass represents the same ‘real world’ object as in the superclass, and may
possess subclass-specific attributes, as well as those associated with the superclass. For
example, a member of the SalesPersonnel subclass inherits all the attributes of the Staff
superclass such as staffNo, name, position, and salary together with those specifically
associated with the SalesPersonnel subclass such as salesArea and carAllowance

Computer Science & Information Technology

You might also like to view...

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

1. When an exception is thrown, the function finishes its execution, its value is returned, then control is transferred to the catch block. 2. The model for the iterator in the STL was the pointer.

Computer Science & Information Technology

The ____ slider is especially useful for removing halos from the edge of a selection.

A. Contrast B. Clarify C. Hue / Saturation D. Differential

Computer Science & Information Technology

Among the vertical-align property values, the ____ value aligns the top of the element with the top of the parent element's font.

A. top B. text-top C. super D. text-parent

Computer Science & Information Technology

Which of the following is NOT a form of data storage?

A) Solid state B) Infrared C) Magnetic D) Optical

Computer Science & Information Technology