PrepAway - Latest Free Exam Questions & Answers

Which code segment should you use to define the Clock class?

You are busy developing a custom control, which displays the time in digital and analog formats. You need to apply the control in a class named Clock. The Clock control will be place on forms and configure the properties to show the time. Which code segment should you use to define the Clock class?

PrepAway - Latest Free Exam Questions & Answers

A.
public class Clock
{
}

B.
public class Clock : Component
{
}

C.
public class Clock : Control
{
}

D.
public class Clock : Timer
{
}

Explanation:
The controls that are obtained from the Clock class are displayed on the form.

Incorrect Answers:
A: You should not obtain it from the Clock. The controls that are obtained from the Clock class are displayed on the form.
B: The controls that are obtained from the Clock class are displayed on the form.
D: The controls that are obtained from the Clock class are displayed on the form.


Leave a Reply