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)- A9% (3)
- B3% (1)
- C17% (6)
- D71% (25)
Community Discussion
No community discussion yet for this question.