Temp Swift

Saturday, 25 February 2017

type alias : User define data type




typealias METER = Int32;

let distance : METER = 2000;

print(distance);

Posted by Divakar at 04:14
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

About Me

Divakar
View my complete profile

Blog Archive

  • ▼  2017 (25)
    • ►  October (1)
    • ►  March (7)
    • ▼  February (17)
      • String : language representation
      • Prefix and Suffix
      • String insert, remove, compare
      • String Indics
      • String basic
      • Control Statement
      • Loop : for and while
      • Decision - making statement
      • Operator
      • Literals
      • Constant
      • Optional
      • Type Safety
      • type alias : User define data type
      • DataType
      • Run and compile code
      • First Swift Program
Simple theme. Powered by Blogger.