1) Calculate the perimeter of rectangle, square and triangle. Create perimeter as a virtual function.