C# Static Members

Question posted in Computer Software on 06 2010
Rate question difficulty level 1 Votes
Please review the following class:
public class Class1
{
public static string Member { get; set; }
}

which of the following code section will work:
A. Class1 c = new Class1() { Member = "text"};
B. Class1.Member = "text";
C. Class1 c; c.Member = "text";
D. None of the above will work
 
 
7 Answers
 
The right answer is B

06/09/2010
 
 
D

08/14/2010
 
 
You've really imperssed me with that answer!

01/11/2012
 
 

01/12/2012
 
 
 
 
 
 
 
 
Add an answer*
 
Your name
Email
 
Company: iForex
Location: Israel
C# Class Static

add a question

arrow_blue


Now hiring!
---------------------------
---------------------------
---------------------------
---------------------------
Mercer 
---------------------------
---------------------------
---------------------------