Adobe
9A0-182 · Question #27
Which code correctly defines the constructor for the Circle class? package { import flash.display.Sprite; public class Circle extends Sprite { !...Code Here...! { super(); } } }
The correct answer is B. public function Circle(). See the full explanation below for the reasoning.
Question
Which code correctly defines the constructor for the Circle class? package { import flash.display.Sprite; public class Circle extends Sprite { !...Code Here...! { super(); } } }
Options
- Aprivate function Circle()
- Bpublic function Circle()
- Cpublic function Circle():void
- Dpublic Circle()
How the community answered
(33 responses)- A6% (2)
- B82% (27)
- C9% (3)
- D3% (1)
Community Discussion
No community discussion yet for this question.