Assuming I have this builder:
class XXXBuilder {
let propertyA: Int
func setPropertyA(value: Int) -> XXXBuilder {...}
func build() -> XXX { ... }
}
Is it OK to have propertyA
as public? or should all the properties should be private?
TIA
Aucun commentaire:
Enregistrer un commentaire