MCQOPTIONS
Saved Bookmarks
| 1. |
Which of the following is the correct way to overload + operator? |
| A. | <pre><code class="csharp">public sample operator + ( sample a, sample b )</code></pre> |
| B. | <pre><code class="csharp">public abstract operator + ( sample a, sample b)</code></pre> |
| C. | <pre><code class="csharp">public abstract sample operator + (sample a, sample b )</code></pre> |
| D. | <pre><code class="csharp">public static sample operator + ( sample a, sample b )</code></pre> |
| E. | All of the above |
| Answer» E. All of the above | |