with the help of private constructor you can add a constraint in your class that nobody can create the object of your class outside the class. coz constructor is visible only inside the class.
Subscribe to:
Post Comments (Atom)
What is Map Collection?
A map collection refers to a set of maps that are compiled and organized for a specific purpose, such as research, education, or preservatio...
-
Mapping of classes can be made into a proxy instead of a table. A proxy is returned when actually a load is calle...
-
constructor :- A constructor is a member function of a class that is used to create objects of that class. It has the same name as ...
-
Having your wallet get lost or stolen is certainly a distressing event. Following several precautions as a general rule in c...
No comments:
Post a Comment