package cn.edu.bjut.chapter4; public class SquareTester { public static void main(String[] args) { Rectangle rect = new Square(6); System.out.println(rect.area()); System.out.println(rect.perimeter()); } }