Answer:
Rocks are classified according to their mode of
formation or origin in three groups: Igneous,
Sedimentary and Metamorphic; and each group
contains in turn a wide variety of types of rock
which differ from each other by their composition and texture.