Closed igavrysh closed 6 years ago
smthng like this?
class Squere: Rectangle {
private var side: Float
init(side: Float) {
self.side = side
super.init(height: side, width: side)
}
var areaa: Float {
get {
return pow(self.side, 2)
}
}
var perimeter: Float {
get {
return 4 * self.side
}
}
}
yes and no,
I think fixed)
Close issue as soon as you feel it can be closed
https://github.com/SCherkasov/MyPlayground/blob/fe756032dfaee9036bac01f1014a2dc8c1c4e554/MyPlayground.playground/Contents.swift#L7-L8
I expect something like