private static void printTotalPerimeter() { Console.WriteLine(); Console.WriteLine("Total perimeter of all inserted elements is: " + DataModel.getTotalPerimeter()); }
public Square(double p) { oneSide = p; xPos = DataModel.getNewXPos(); yPos = DataModel.getNewYPos(); }
private static void printTotalArea() { Console.WriteLine(); Console.WriteLine("Total area of all inserted elements is: " + DataModel.getTotalArea()); }