National_Instruments
200-500 · Question #197
Which of the following code snippets is correct? (Choose 2) (a) interface Drawable { abstract function draw(); } (b) interface Point { function getX(); function getY(); } (c) interface Line extends…
The correct answer is B. (b) C. (c). See the full explanation below for the reasoning.
Question
Which of the following code snippets is correct? (Choose 2) (a) interface Drawable { abstract function draw(); } (b) interface Point { function getX(); function getY(); } (c) interface Line extends Point { function getX2(); function getY2(); } (d) interface Circle implements Point { function getRadius(); }
Options
- A(a)
- B(b)
- C(c)
- D(d)
How the community answered
(48 responses)- A10% (5)
- B73% (35)
- D17% (8)
Community Discussion
No community discussion yet for this question.