Let's say I have a class:
class Fruit {
var fruitName: String
init(getFruit name: String) {
fruitName = name
}
}
Is there any difference between using the constructor, and using .init?
var apple = Fruit(getFruit: "apple")
var orange = Fruit.init(getFruit: "orange")
Im not seeing any difference in playground.
I apologize if the question is badly worded or has been asked before.