I am making a java program to calculate area and perimeter of triangle and square where I need to create an object of both triangle and square classes and take inputs from t