I can not understand it is possible to use extensions with classes?
for example, I have this code:
extension HelloEveryBody { func addString() -> String { return "hhhh \(self)" } } class HelloEveryBody { var abc = "hello" func helloAgain() { print(abc.addString()) } } var test = HelloAgain() test.helloAgain() Why is this code not working?