Hello everyone, I am new to java and method calls from outside a class is still a little confusing to me, What I am trying to do is take a square object defined in one class and calculate the area and perimeter of that square object inside a different class( probably an easy task for someone with a decent grasp on this topic). I will attach my code that I have so far to make the area so that you can see where I am heading. I'm looking for feedback as to why I can't call the area function from the printSquareMeasurements method.class Square extends SquareCalc { private double side; public double area; public Square (Square sq){ side = s; } public double Area (Square sq){ area = s * s; return area; } } public class SquareCalc { static void printSquareMeasures(Square sq){ System.out.println("area = " + sq.Area()); } public static void main(String[] args) { Square sq = new Square(4); printSquareMeasures(sq); // call to function that displays results } }