12 lines
171 B
TypeScript
12 lines
171 B
TypeScript
class VirtualPoint {
|
|
x: number;
|
|
y: number;
|
|
|
|
constructor(x: number, y: number) {
|
|
this.x = x;
|
|
this.y = y;
|
|
}
|
|
}
|
|
|
|
const newVPoint = new VirtualPoint(13, 56);
|