Teratomas are classified based on their maturity and location. The two main types are mature and immature teratomas. Mature teratomas are generally benign and composed of well-differentiated tissues, while immature teratomas have less differentiated tissues and a higher potential for malignancy. The presence of immature neuroepithelial tissue is often a key factor in determining malignancy.