nerdexam
Oracle

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.

Working with Forms Modules

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)
  • A
    76% (41)
  • B
    4% (2)
  • C
    6% (3)
  • D
    2% (1)
  • E
    13% (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

#object copying#subclassing#property classes#object reuse

Community Discussion

No community discussion yet for this question.

Full 1Z0-151 Practice