0

I couldn’t find this anywhere on the web but when declaring class properties, I saw this version of implementation:

var _number: Int!

When I tried to remove the (!) I saw no difference. When declaring a class property, or in general, what is the difference between ClassName! And ClassName (without the !)? What is the meaning of adding the (!)?

Thank you!

Gal Shahar
  • 2,695
  • 1
  • 21
  • 29

0 Answers0