Q:

If a class ‘demo’ had ‘add’ property with getting and set accessors, then which of the following statements will work correctly?

0

If a class ‘demo’ had ‘add’ property with getting and set accessors, then which of the following statements will work correctly?


  1. math.add = 20;
  2. math m = new math(); m.add = 10;
  3. Console.WriteLine(math.add);
  4. None of the mentioned

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Correct Answer:

math.add = 20;

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now