The answer may be too obvious, and I may be asking a s*i*l*l**y* question. Please help me out understanding the issue.
As per Swift documentation, final classes can be extended, but you can not override the already declared methods etc. However, it seems like I am able to do that on NWConnection. I want to understand why it is possible. Here is my code.
As per Swift documentation, final classes can be extended, but you can not override the already declared methods etc. However, it seems like I am able to do that on NWConnection. I want to understand why it is possible. Here is my code.
Code Block import Network extension NWConnection { // My new method func hello() { print("Hello") } func start(queue: DispatchQueue) { os_log("My Version is called") //Hypothetical state modification self.stateUpdateHandler?(.setup) } }