The Correct Way To Implement A Read Only Property Add In A Math #474
The correct way to implement a read only property add, in a math class is?
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 - Properties and its Applications - Quiz No.1.
The correct way to implement a read only property add, in a math class is?
class math { int ad; public int add { get { return ad; } } }
class math { public int add { get { return ad; } } }
class math { int ad; public int add { get { return ad; } set { ad = value; } } }
None of the mentioned