C# Programming - Attributes - Discussion

Discussion :: Attributes - General Questions (Q.No.5)

5. 

Which of the following is correct ways of applying an attribute?

[A].
[WebService (Name = "IndiaBIX", Description = "BIX WebService")] 
class AuthenticationService: WebService
{ /* .... */}
[B].
<WebService ( Name : "IndiaBIX", Description : "BIX WebService" )> 
class AuthenticationService: inherits WebService
{ /* .... */}
[C].
<WebService ( Name = "IndiaBIX", Description = "BIX WebService" )> 
class AuthenticationService: extends WebService
{ /* .... */}
[D].
[WebService ( Name := "IndiaBIX", Description := "BIX WebService")] 
class AuthenticationService: inherits WebService
{ /* .... */}

Answer: Option A

Explanation:

No answer description available for this question.

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.