create a triangle class with necessary instance attributes, they should be point objects, and class constants, and the following methods: - Constructors - default (default Points at (0,0)) & non-default; - Accessors - return a copy of the value of an attribute, use Point copy constructor- Mutators - assigns new value to an instance attribute.- is Triangle() - returns true if the three points for a triangle, otherwise returns false.; - isRightTriangle() - returns true if the three points form a right triangle, otherwise returns false.- toString() - returns a String of the three points separated by single spaces.(0.0, 0.0)(3.0, 0.0) 10.0,4.01