1Z0-151 · Question #57
You have been assigned to maintain a Forms application that was designed by a developer who has left the company. The CV_Tools canvas contains several buttons. There is limited space on the canvas…
The correct answer is D. All other buttons were subclassed from the first button. D (not F): With subclassing you can make an exact copy, and then alter the properties of some objects if desired. If you change the parent class, the changes also apply to the properties of the subclassed object that you have not altered. However, any properties that you…
Question
You have been assigned to maintain a Forms application that was designed by a developer who has left the company. The CV_Tools canvas contains several buttons. There is limited space on the canvas, but the first button is not quite wide enough to display its complete label. In the Layout Editor, you widen the button slightly and find that the width of all the buttons increases so that they now overlap each other. What could have caused this problem?
Options
- AThe buttons inherit their properties from the same property class.
- BThe buttons were created by dragging them from an object group.
- CThe buttons were created by using a Smart Class.
- DAll other buttons were subclassed from the first button.
- EAll other buttons were copied from the first button.
- FThe first button was subclassed from another button.
- GThe first button was copied from another button.
How the community answered
(27 responses)- B11% (3)
- D81% (22)
- F4% (1)
- G4% (1)
Explanation
D (not F): With subclassing you can make an exact copy, and then alter the properties of some objects if desired. If you change the parent class, the changes also apply to the properties of the subclassed object that you have not altered. However, any properties that you override remain overridden. This provides a powerful object inheritance model.
Topics
Community Discussion
No community discussion yet for this question.