Answer:
Igneous rocks are classified on the basis of their composition and their texture. Magma, and the igneous rock it becomes, has a range of chemical compositions. For example, basalt is a mafic lava flow rock which originates from melting of the upper mantle.
Igneous rocks are classified mainly by their mineral composition and texture. :D