Calculation of the properties of squares
The class Square calculates properties of a square.
The default argument is the side length \(a \). This means that the side length can be passed as an argument without a command string (see example below).
The following properties can be queried as a result or passed as an argument.
Symbols
Description
a Length of \(a\) (default) d Diagonal P Perimeter A Area
Object = Square (a)
Object = Square ("arg names", arguments)
Value = Square ("get -> arg names", arguments)
Calculation of the properties with the side length \(a \).
Calculation of the properties with the diagonalen \(d\).
The following example displays the area \(A \) of the object \(a \).
Calculation of the area \(A \) from the side length \(a \).