Something like this Public static void $circle(int x, int y , int r){ Circle circle = new Circle(x,y,r); }