Elance Exams Answers PDF file

-- PDF FILE --
Download PDF file of elance Zoho Creator Exam Answers
elance-zoho-creator-exam.pdf

What is the output of the following code snippet. public class ClassOne { public ClassOne(int id, string name, bool isTest) { this.ID = id; this.Name = name; this.IsTest = isTest; } public int ID { get; private set; } public string Name { get; protected set; } protected bool IsTest { get; internal set; } } public void Run() { ClassOne one = new ClassOne(1, "John", false); Console.WriteLine(one.Name); }

Compile Run Time Error The accessibility modifier on ClassOne.IsTest.set must be more restrictive than the property or indexer 'ClassOne.IsTest'
John
Compile Run Time Error The accessibility modifier on ClassOne.Name.set must be more restrictive than the property or indexer 'ClassOne.Name'
Both Compiler Errors
Top
  • Follows us our servcies
  • Facebook icon
  • Linkedin icon
  • twitter icon
  • rss icon
  • social icon