class Friend{
var name: String
var age: Int
init(name: String){
self.name = name
self.age = 10
}
convenience init(name: String, age: Int){
self.init(name: name)
self.age = age
}
}
let myFriend = Friend(name: "쩡대리")
myFriend.age //10
let myFriend2 = Friend(name: "정대리", 20)
myFriend2.age //20