Posts by Mamede • 31 points
2 posts
-
2
votes6
answers1227
viewsA: Property readonly . NET
To place a read-only feature, we have two options, put only get in the property statement or declare set private.
-
1
votes4
answers2252
viewsA: What is the advantage of hiding the class constructor in favor of a static method (no .NET)?
This way of working with the builder is widely used in the Singleton design pattern. To answer the question, it is not good practice to treat all classes in this way. Try to talk to your leader and…