Hi
in OOP design i can make the constructor private in order not to instantiate object from the class . and so i can make function that return the object
why we make the constructor private? what we gain from this?
thanks in advance.
in OOP design i can make the constructor private in order not to instantiate object from the class . and so i can make function that return the object
why we make the constructor private? what we gain from this?
thanks in advance.