class Trangle{ double sideA, sideB, sideC, area, length; boolean flag; Trangle(double a, double b, double c){//public if(a < (b + c) && b < (a + c) && c < (a + b)){ sideA = a; sideB = b; sideC = c; flag = true; } else flag = false
以下来自:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/new The new operator creates an instance of a user-defined object type or of one of the built-in object types that has a constructor function. new constructor[([argument