Categories:
.NET (961)
C (387)
C++ (185)
CSS (84)
DBA (8)
General (31)
HTML (48)
Java (641)
JavaScript (220)
JSP (109)
JUnit (31)
MySQL (297)
Networking (10)
Oracle (562)
Perl (48)
Perl (9)
PHP (259)
PL/SQL (140)
RSS (51)
Software QA (28)
SQL Server (5)
Struts (20)
Unix (2)
Windows (3)
XHTML (199)
XML (59)
Other Resources:
In what instances you will declare a constructor to be private
In what instances you will declare a constructor to be private?
✍: Guest
When we create a private constructor, we can not create object of the class directly from a client. So you will use private constructors when you do not want instances of the class to be created by any external client. Example UTILITY functions in project will have no instance and be used with out creating instance, as creating instances of the class would be waste of memory.
2007-10-23, 5371👍, 0💬
Popular Posts:
Does there exist any other function which can be used to convert an integer or a float to a string? ...
Can you explain the fundamentals of “GetGlobalResourceObject ”and “GetLocalResourceObject” function...
What is synchronization and why is it important? With respect to multithreading, synchronization is ...
.NET INTERVIEW QUESTIONS - What is COM ? Microsoft’s COM is a technology for component software deve...
How can I execute a PHP script using command line? Just run the PHP CLI (Command Line Interface) pro...