2. Connecting line segments with 4 points on a plane as endpoints, the maximum number of triangles that can be formed in the resulting figure is ( )
(A) 3
(B) 4
(C) 6
(D) 8
D

Translate the text above into English, please retain the original text's line breaks and format, and output the translation result directly.