1Z0-151 · Question #73
You have a text item in your form named Object1. You want to create Object2 as an exact duplicate of Object1. You want to be able to change the properties of Object2. However if you change Object1…
The correct answer is A. Copying Object1. When you copy an object, a separate, unique version of that object is created in the target module. Any objects owned by the copied object also get copied. Changes made to a copied object in the source module do not affect the copied object in the target module.
Question
You have a text item in your form named Object1. You want to create Object2 as an exact duplicate of Object1. You want to be able to change the properties of Object2. However if you change Object1, you do not want Object2 to change. Which method of reusing Object1 would be best for these requirements?
Options
- ACopying Object1
- BSubclassing Object1
- CCreating a property class from Object1
- DPutting Object1 in an Object library
- EReferencing Object1 in a PL/SQL library
How the community answered
(54 responses)- A76% (41)
- B4% (2)
- C6% (3)
- D2% (1)
- E13% (7)
Explanation
When you copy an object, a separate, unique version of that object is created in the target module. Any objects owned by the copied object also get copied. Changes made to a copied object in the source module do not affect the copied object in the target module.
Topics
Community Discussion
No community discussion yet for this question.