If Math Class Had Add Property With Get And Set Accessors Then #472
If math class had add property with get and set accessors, then which of the following statements will work correctly?
This multiple choice question (MCQ) is related to the book/course gs gs108 CSharp. It can also be found in gs gs108 Indexers and Exception Handling - Introduction of Properties - Quiz No.1.
If math class had add property with get and set accessors, then which of the following statements will work correctly?
math.add = 20;
math m = new math(); m.add = 10;
Console.WriteLine(math.add);
None of the mentioned