0

i have a class model .js So, how to get value from this class in android project

class Polygon{
      constructor(height, width) {
        this.height = height;
        this.width = width;
      }

      get area() {
        return this.calcArea();
      }

      calcArea() {
        return this.height * this.width;
      }
}
imnunss
  • 1
  • 1

0 Answers0