Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Family {
- var name:String = ""
- var number:Int = 0
- var position:String = ""
- func Intro(){
- if number > members.number {
- print("Your family member seem like look enough")
- } else{
- print("It is crazy when you too many of family members here?")
- }
- print(members.number)
- }
- }
- let members = Family()
- members.name = "Sua Kai Young"
- members.number = 8
- members.position = "Housewife"
- print(members.name)
- print(members.number)
- print(members.position)
- members.Intro()
- print("My name is \(members.name) and my family member number is \(members.number) and my mother's responsible is \(members.position)")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement