Introduction - If you have any usage issues, please Google them yourself
Try to define classes TRI (triangle) and its derived classes COL (triangular prism) which can calculate the triangle class area and perimeter of triangles: triangular prism class can calculate the volume and surface area of the cylinder.