factory tag

1 questions


1 answers
60 views
0
What do you mean by using a static factory method instead of a constructor?

I was working on the Java program, and my friend told me to use the static factory method instead of the creator.I didn't tell you why, but I don't know what this means.


© 2024 OneMinuteCode. All rights reserved.