nerdexam
Adobe

9A0-182 · Question #85

You have a custom class with a private property _name: private var _name:String; How should you declare an implicit getter for _name?

Sign in or unlock 9A0-182 to reveal the answer and full explanation for question #85. The question stem and answer options stay visible for context.

Interactivity and ActionScript 3.0

Question

You have a custom class with a private property _name:

private var _name:String; How should you declare an implicit getter for _name?

Options

  • Apublic function getName():String { return _name; }
  • Bpublic function get name():String { return _name; }
  • Cpublic function name():String {return _name; }
  • Dpublic function get _name():String {return _name; }

Unlock 9A0-182 to see the answer

You've previewed enough free 9A0-182 questions. Unlock 9A0-182 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#ActionScript 3.0#implicit getter#private property accessor#OOP encapsulation
Full 9A0-182 Practice