Number of questions 1,751
Number of tests completed 248,333
Number of questions answered 3,716,146
Number of registered users 19,034
Sign In | Register
Skip Navigation Links
Question: Given the following code: interface IDog { void Walk (); void Run (); void Lay (); void Sit (); } Which of the following statements is true?
Answer1: Any class that implements IDog must define at least one of the four listed methods.
Answer2: Any class that implements IDog can override any of the four listed methods.
Answer3: Any class that implements IDog can define any number of the four listed methods.
Answer4: Any class that implements IDog cannot define any of the four listed methods.
Answer5: Any class that implements IDog must define all four listed methods.
Answer: Any class that implements IDog must define all four listed methods.

Explaination: interface IDog { void Walk (); void Run (); void Lay (); void Sit (); } class BorderCollie : IDog { public void Walk() { } public void Run() { } public void Lay() { } public void Sit() { } }
Link: External Explaination

Correctly answered: 19642
Incorrectly answered: 8110
Terms of Use
contact@quiznetonline.com Ver. 2.0.6783.38332