Examveda

If math class had add property with get and set accessors, then which of the following statements will work correctly?

A. math.add = 20;

B. math m = new math();
m.add = 10;

C. Console.WriteLine(math.add);

D. None of the mentioned

Answer: Option B


Join The Discussion

Related Questions on Exception Handling in C Sharp