there is no restriction at all, you can create n no of objects. A member
function can call a private constructor any number of times.
Just 1 single object is created bcoz this is the property of singleton
class.
A singleton class is a class which ensures the class has only one instance
it
due to this singleton class i lost 6.5 lpa opportunity :( in Hcentive noida
On Tue, Sep 6, 2011 at 12:58 PM, rahul vatsa vatsa.ra...@gmail.com wrote:
there is no restriction at all, you can create n no of objects. A member
function can call a private constructor any number of times.
Just 1
:D
may be u lost this to gt something better :-)
On Tue, Sep 6, 2011 at 4:32 AM, ROHIT SINGHAL rohitksingha...@gmail.comwrote:
due to this singleton class i lost 6.5 lpa opportunity :( in Hcentive noida
On Tue, Sep 6, 2011 at 12:58 PM, rahul vatsa vatsa.ra...@gmail.comwrote:
there is no
my personal experience.
guys don't regret while placements,
it wont bring any work-ability in the preparation.
always look for what was missing in the last interview, prepare well.
I didnt prepare because of the initial failure in the placements(ended up
where i did not planed). I wish that wont
ya dont be upset if some one who is not as good as u get a job and u don get
it ... think positively ... think that the company don deserve u and start
working on ur weak areas
On Tue, Sep 6, 2011 at 2:34 PM, siddharam suresh siddharam@gmail.comwrote:
my personal experience.
guys don't
:) thanks for such gud words guys
On Tue, Sep 6, 2011 at 2:47 PM, sukran dhawan sukrandha...@gmail.comwrote:
ya dont be upset if some one who is not as good as u get a job and u don
get it ... think positively ... think that the company don deserve u and
start working on ur weak areas
On
hi neha how are you send me a nice mail of nature plz reply me i m online
now
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to
When do u hv a private constructor for a class ???
How to create an object of such a class ??
What's its utility ??
Anyone plz explain asap??
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this group, send email to
I think when we have to create a singleton class, we can use private
constructor. Objects of such classes can be constructed using static
functions that can be accessed using class name and scope resolution
operators. This is useful because user can create only one object of that
class, which is
for singletion class
On Mon, Sep 5, 2011 at 9:42 PM, Sanjay Rajpal srn...@gmail.com wrote:
I think when we have to create a singleton class, we can use private
constructor. Objects of such classes can be constructed using static
functions that can be accessed using class name and scope
hey guys fro where i can find open source project to workon??
On Mon, Sep 5, 2011 at 9:44 PM, sukran dhawan sukrandha...@gmail.comwrote:
for singletion class
On Mon, Sep 5, 2011 at 9:42 PM, Sanjay Rajpal srn...@gmail.com wrote:
I think when we have to create a singleton class, we can use
Thnks everybody ..
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to
algogeeks+unsubscr...@googlegroups.com.
For more options, visit
it usually works like this -
public class Test1
{
private static Test1 obj; // Static member hence singleton
private Test1() // To prevent the Compiler from creating default
constructor
{
// Do whatever initialization required
}
public static Test1
bcoz u cant keep reinitializing the same object
On 5 September 2011 22:15, Neha Singh neha.ndelhi.1...@gmail.com wrote:
Guys hv a doubt, plz clarify ..
You mentioned that if a class has a private constructor then the object of
that class can be created using call to a static method which
14 matches
Mail list logo