File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed 
SwiftBasics/TypesOperators.playground Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -7,16 +7,22 @@ import Foundation
77class  LightSwitch  { 
88 var  on :  Bool  =  true 
99 var  dimmer :  Int  =  3 
10+  var  floatDimmer :  Float  =  3.15 
11+  var  dobuleDimmer :  Double  =  3.1111554 
1012} 
1113
1214var  livingRoomSwitch  =  LightSwitch ( ) 
1315livingRoomSwitch. on
1416//: ### Example 2: Strings and Characters
1517var  dollarSign :  Character  =  " $ " 
18+ var  euroSign :  Character  =  " € " 
19+ var  myName :  String  =  " divyanshu " 
1620var  myFirstSwiftString :  String  =  " mo' money " 
1721var  mySecondSwiftString :  String  =  " mo' problems " 
1822var  concatenatedString : String  =  myFirstSwiftString +  " ,  "  +  mySecondSwiftString
1923
24+ type ( of:  euroSign) 
25+ 
2026//: ### Stay tuned for more on Optionals and Tuples in the upcoming lessons!
2127
2228//: # Operators
                                 You can’t perform that action at this time. 
               
                  
0 commit comments