using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace UsingStructs
{
public struct Point
{
private int xCoord;
private int yCoord;
public Point(int x, int y)
{
xCoord = x;
yCoord = y;
}
public int x
{
get { return xCoord; }
set { xCoord = value; }
}
public int y
{
get { return xCoord; }
set { xCoord = value; }
}
}
class Program
{
static void Main(string[] args)
{
}
}
}
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace UsingStructs
{
public struct Point
{
private int xCoord;
private int yCoord;
public Point(int x, int y)
{
xCoord = x;
yCoord = y;
}
public int x
{
get { return xCoord; }
set { xCoord = value; }
}
public int y
{
get { return xCoord; }
set { xCoord = value; }
}
}
class Program
{
static void Main(string[] args)
{
}
}
}
0 comments:
Post a Comment