diff --git a/modules-examples/tp1.js b/modules-examples/tp1.js index 02e7c31..6be34e3 100644 --- a/modules-examples/tp1.js +++ b/modules-examples/tp1.js @@ -13,10 +13,19 @@ export class Point{ this.#x = x; this.#y = y; } + + /** + * Retoure la coordonée X du point. + * @returns {number} + */ getX(){ return this.#x; } + /** + * Retoure la coordonée Y du point. + * @returns {number} + */ getY(){ return this.#y; }