Ask your own question, for FREE!
Computer Science 21 Online
OpenStudy (anonymous):

how we use set and get keywords in C# programming language?

OpenStudy (anonymous):

You mean defining an object's properties?

OpenStudy (anonymous):

Take a look here: http://www.csharp-station.com/Tutorials/Lesson10.aspx Basically it's a cleaner way to implement getters and setters, but at the end of the day it's the same thing.

OpenStudy (anonymous):

public int X { get { return x; } set { x = value; } }

OpenStudy (anonymous):

that's like using a function to access privates data members in a class...

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!