If The Math Class Had Add Property With Get Accessors Then #473
If the math class had add property with get 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 the math class had add property with get accessors then which of the following statements will work correctly?
math m = new math(); m.add = 10;
math m = new math(); m.add = m.add + 20;
math m = new math(); int i; i = m.add;
math.add = 20;