1.

How To Define Ksomeconstant As An Integer?

Answer»

In this case kSomeConstant is implicitly defined as an INTEGER.

If you WANT to be more specific you can specify which type it is LIKE so:

let kSomeConstant: Int = 40

In this case kSomeConstant is implicitly defined as an integer.

If you want to be more specific you can specify which type it is like so:

let kSomeConstant: Int = 40



Discussion

No Comment Found