> 原文:[https://www . geesforgeks . org/Java-program-to-找出矩形的面积和周长-使用类-概念/](https://www.geeksforgeeks.org/java-program-to-find-out-the ...
In this project you will use object oriented programming to create a Rectangle class and a Square class. The Square class should be a subclass of Rectangle and inherit methods and attributes.
Cuireadh roinnt torthaí i bhfolach toisc go bhféadfadh siad a bheith dorochtana duit
Taispeáin torthaí dorochtana