struct Shape{
var length: Float = 0
var width: Float = 0
struct Rectange {
var length = Shape().length
var width = Shape().width
var area: Float{
get{
return length * width
}
}
}
}
I know how to assign values from one struct to a nested struct. I just want to see if this IS USED or "LEGAL" in real life.