Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

Swift Access Class Property using Objects

// modify the name property
bike1.name = "Mountain Bike"

// access the gear property
bike1.gears
 
PREVIOUS NEXT
Tagged: #Swift #Access #Class #Property #Objects
ADD COMMENT
Topic
Name
2+9 =