Write a generalized program that takes measurement of different shapes example 1) Triangle 2) Rectangle and displays it's area using inheritance.