MCQOPTIONS
Saved Bookmarks
| 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; } } } b) class math { public int add { get { return ad; } } } c) class math { int ad; public int add { get { return ad; } set { ad = value; } } } |
| A. | A |
| B. | B |
| C. | C |
| D. | None of the mentioned |
| Answer» B. B | |