C# Properties Program
class test{
int x;
public int setX
{
get
{
return x;
}
set
{
x = value;
}
}
}
class Program
{
static void Main(string[] args)
{
test ob = new test();
ob.setX = 222;
Console.WriteLine(ob.setX);
}
}
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
No comments:
Post a Comment