Compound data type: Difference between revisions
Content added Content deleted
(Verbose version) |
|||
Line 83: | Line 83: | ||
{ |
{ |
||
public int x, y; |
public int x, y; |
||
public Point( |
public Point() { x = 0; y = 0; } |
||
public Point(int x0) { x = x0; y = 0; } |
|||
public Point(int x0, int y0) { x = x0; y = y0; } |
|||
} |
|||
// Verbose version |
|||
.class public sequential ansi sealed beforefieldinit Point |
|||
extends [mscorlib]System.ValueType |
|||
{ |
|||
public int x, y; |
|||
public Point() { x = 0; y = 0; } |
|||
public Point(int x0) { x = x0; y = 0; } |
|||
public Point(int x0, int y0) { x = x0; y = y0; } |
|||
} |
} |
||