diff --git a/GeoLib/Triangle.h b/GeoLib/Triangle.h
index 50c1a22d9ac13f0f5bc7e63b2f1ad82aaff1c93a..dc65fff94c137bb7119780be9ad08dcc9012a49a 100644
--- a/GeoLib/Triangle.h
+++ b/GeoLib/Triangle.h
@@ -28,7 +28,7 @@ class Point;
  * A surface is composed by triangles. The class Surface stores the position
  * of pointers to the points of triangles in the m_sfc_pnt_ids vector.
  * */
-class Triangle
+class Triangle final
 {
 public:
     /**
@@ -74,7 +74,7 @@ public:
      */
     bool containsPoint2D (Point const& pnt) const;
 
-protected:
+private:
     /** a vector of pointers to points */
     const std::vector<Point*> &_pnts;
     /** position of pointers to the geometric points */