The Big Nerd Ranch Swift - Ch.25 Bronze Challenge

less than 1 minute read

There is no description of challenge. Becaouse of license.

When I use a header “class someName…” in code block for some code, that means the following code is within the scope of the class named ‘someName’.

  1. overload the + operator
// class Point...
    static func + (lhs:Point, rhs: Point) -> Point {
        return Point(x: lhs.x + rhs.x,
                     y: lhs.y + rhs.y)
    }

code1   code2

Leave a comment