Elance Exams Answers PDF file

-- PDF FILE --
Download PDF file of elance Zoho Creator Exam Answers

The where condition for the generic definition should be changed to ensure that the code will compile. class MyClass<V> where V :class, IComparable { public void foo() { V aClass = new V(); } } class Program { public static void Main(string[] args) { } } How should the where condition be changed?

Impliment the interface IComparable. i.e define CompareTo method inside MyClass
Add "new()" as the last generic where condition
Remove "class" from the generic where condition
Remove IComparable from the generic where condition
  • Follows us our servcies
  • Facebook icon
  • Linkedin icon
  • twitter icon
  • rss icon
  • social icon