Hi,
today I did the 4th
test unit of Enthuware and I came accross the following problem:
Write the declaration of Polygon class based on the following description.
A Polygon is a Shape which is used by many packages of an application. It contains a list of points, a Color and a boolean flag for the fill value.
(Use only one space between the words. Do not use semicolon or braces)
Ok, I typed the following declaration, assuming that class members (as described in the text: List, Color, boolean) are required, too:
public class Polygon extends Shape List points Color color boolean fill
The correct answer is, instead:
public class Polygon extends Shape
The machine ignored my correct part - in addition, I find that the text above is misleading, because they talk about the class members, as well.
Okay, it seems that the only class declaration is required, so no members have to come into play, is that correct?
What about the real exam?
Does such kind of questions (= typing the text directy into text fields) appear in the real exam, as well?