Home / CSE MCQs / C#.Net MCQs :: Discussion

Discussion :: C#.Net MCQs

  1. Consider a class maths and we had a property called as sum.b is a reference to a maths object and we want the statement b.sum = 10 to fail.Which of the following is the correct solution to ensure this functionality?
  2. A.
    Declare sum property with both get and set accessors
    B.
    Declare sum property with only get accessor
    C.
    Declare sum property with get, set and normal accessors
    D.
    None of the mentioned

    View Answer

    Workspace

    Answer : Option C

    Explanation :



Be The First To Comment