nerdexam
Adobe

9A0-182 · Question #36

Given the following code: user.firstName = "Bruno"; Which declaration would enable you to set the firstName property as shown?

The correct answer is D. public function set firstName(value:String):void{}. See the full explanation below for the reasoning.

Question

Given the following code:

user.firstName = "Bruno"; Which declaration would enable you to set the firstName property as shown?

Options

  • Apublic function setFirstName(value:String):void{}
  • Bpublic function getFirstName():String{}
  • Cpublic function get firstName():void{}
  • Dpublic function set firstName(value:String):void{}

How the community answered

(35 responses)
  • A
    9% (3)
  • B
    3% (1)
  • C
    17% (6)
  • D
    71% (25)

Community Discussion

No community discussion yet for this question.

Full 9A0-182 Practice