Mutations can be somatic or inherited. Somatic mutations are mutations that occur in a single body cell, so only tissues derived from mutated cell are affected. Somatic mutations are not inherited. On the other hand, inherited or germline mutations occur in gametes (egg cells and sperm cells) and are passed onto offspring. As a result of these kind of mutations each cell in the organism is affected.
Somatic mutations: BRAF and KRAS gene.
Inherited mutations: FRG2 and BRCA1 gene.