MCQOPTIONS
Saved Bookmarks
| 1. |
Which of the following forms of applying an attribute is correct? |
| A. | <pre><code class="csharp">< Serializable() > class sample { /* ... */ }</code></pre> |
| B. | <pre><code class="csharp">(Serializable()) class sample { /* ... */ }</code></pre> |
| C. | <pre><code class="csharp">[ Serializable() ] class sample { /* ... */ }</code></pre> |
| D. | <pre><code class="csharp">Serializablef) class sample { /* ... */ }</code></pre> |
| E. | None of the above |
| Answer» D. <pre><code class="csharp">Serializablef) class sample { /* ... */ }</code></pre> | |