Re: [algogeeks] DE shaw question- urgent

2011-09-06 Thread parth panchal
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 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] DE shaw question- urgent

2011-09-06 Thread ROHIT SINGHAL
:) thanks for such gud words guys

On Tue, Sep 6, 2011 at 2:47 PM, sukran dhawan wrote:

> 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 
> wrote:
>
>> 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 happen with anybody.
>>
>> Thank you,
>> Sid.
>>
>>
>>
>> On Tue, Sep 6, 2011 at 2:19 PM, rahul vatsa wrote:
>>
>>> :D
>>> may be u lost this to gt something better :-)
>>>
>>>
>>> On Tue, Sep 6, 2011 at 4:32 AM, ROHIT SINGHAL >> > wrote:
>>>
 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 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 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 provides a global point of access to it.  that it provides
> through a public static member function.
> This member function when invoked , first checks if the single instance
> has already been create, if yes it doesn't create a new 1, it gives you 
> back
> the already created one, so even if you call it multiple times, you get 
> the
> same object. nd thatz basically the intent behind.
>
> If you want to have more than one objects, you can modify this member
> function & can do that.
>
>
>
>
> On Mon, Sep 5, 2011 at 12:45 PM, 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
>> internally calls the constructor and returns its reference. I can't
>> understand why only 1 object can be created as mentioned by you. As in, 
>> we
>> can call the static method multiple times and create multiple objects..
>>
>> --
>> 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 this group at
>> http://groups.google.com/group/algogeeks?hl=en.
>>
>
>  --
> 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 this group at
> http://groups.google.com/group/algogeeks?hl=en.
>



 --
 Regards:
 Rohit Singhal


  --
 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 this group at
 http://groups.google.com/group/algogeeks?hl=en.

>>>
>>>  --
>>> 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 this group at
>>> http://groups.google.com/group/algogeeks?hl=en.
>>>
>>
>>  --
>> 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 this group at
>> http://groups.google.com/group/algogeeks?hl=en.
>>
>
>  --
> 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 this group at
> http://groups.google.com/group/algogeeks?hl=en.
>



-- 
Regards:
Rohit Singhal

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this

Re: [algogeeks] DE shaw question- urgent

2011-09-06 Thread sukran dhawan
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 wrote:

> 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 happen with anybody.
>
> Thank you,
> Sid.
>
>
>
> On Tue, Sep 6, 2011 at 2:19 PM, rahul vatsa  wrote:
>
>> :D
>> may be u lost this to gt something better :-)
>>
>>
>> On Tue, Sep 6, 2011 at 4:32 AM, ROHIT SINGHAL 
>> wrote:
>>
>>> 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 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 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 provides a global point of access to it.  that it provides
 through a public static member function.
 This member function when invoked , first checks if the single instance
 has already been create, if yes it doesn't create a new 1, it gives you 
 back
 the already created one, so even if you call it multiple times, you get the
 same object. nd thatz basically the intent behind.

 If you want to have more than one objects, you can modify this member
 function & can do that.




 On Mon, Sep 5, 2011 at 12:45 PM, Neha Singh >>> > 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 
> internally
> calls the constructor and returns its reference. I can't understand why 
> only
> 1 object can be created as mentioned by you. As in, we can call the static
> method multiple times and create multiple objects..
>
> --
> 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 this group at
> http://groups.google.com/group/algogeeks?hl=en.
>

  --
 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 this group at
 http://groups.google.com/group/algogeeks?hl=en.

>>>
>>>
>>>
>>> --
>>> Regards:
>>> Rohit Singhal
>>>
>>>
>>>  --
>>> 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 this group at
>>> http://groups.google.com/group/algogeeks?hl=en.
>>>
>>
>>  --
>> 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 this group at
>> http://groups.google.com/group/algogeeks?hl=en.
>>
>
>  --
> 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 this group at
> http://groups.google.com/group/algogeeks?hl=en.
>

-- 
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 this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] DE shaw question- urgent

2011-09-06 Thread siddharam suresh
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 happen with anybody.

Thank you,
Sid.



On Tue, Sep 6, 2011 at 2:19 PM, rahul vatsa  wrote:

> :D
> may be u lost this to gt something better :-)
>
>
> On Tue, Sep 6, 2011 at 4:32 AM, ROHIT SINGHAL 
> wrote:
>
>> 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 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 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 provides a global point of access to it.  that it provides
>>> through a public static member function.
>>> This member function when invoked , first checks if the single instance
>>> has already been create, if yes it doesn't create a new 1, it gives you back
>>> the already created one, so even if you call it multiple times, you get the
>>> same object. nd thatz basically the intent behind.
>>>
>>> If you want to have more than one objects, you can modify this member
>>> function & can do that.
>>>
>>>
>>>
>>>
>>> On Mon, Sep 5, 2011 at 12:45 PM, Neha Singh 
>>> 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 internally
 calls the constructor and returns its reference. I can't understand why 
 only
 1 object can be created as mentioned by you. As in, we can call the static
 method multiple times and create multiple objects..

 --
 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 this group at
 http://groups.google.com/group/algogeeks?hl=en.

>>>
>>>  --
>>> 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 this group at
>>> http://groups.google.com/group/algogeeks?hl=en.
>>>
>>
>>
>>
>> --
>> Regards:
>> Rohit Singhal
>>
>>
>>  --
>> 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 this group at
>> http://groups.google.com/group/algogeeks?hl=en.
>>
>
>  --
> 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 this group at
> http://groups.google.com/group/algogeeks?hl=en.
>

-- 
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 this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] DE shaw question- urgent

2011-09-06 Thread rahul vatsa
:D
may be u lost this to gt something better :-)

On Tue, Sep 6, 2011 at 4:32 AM, ROHIT SINGHAL wrote:

> 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 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 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 provides a global point of access to it.  that it provides through a
>> public static member function.
>> This member function when invoked , first checks if the single instance
>> has already been create, if yes it doesn't create a new 1, it gives you back
>> the already created one, so even if you call it multiple times, you get the
>> same object. nd thatz basically the intent behind.
>>
>> If you want to have more than one objects, you can modify this member
>> function & can do that.
>>
>>
>>
>>
>> On Mon, Sep 5, 2011 at 12:45 PM, Neha Singh 
>> 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 internally
>>> calls the constructor and returns its reference. I can't understand why only
>>> 1 object can be created as mentioned by you. As in, we can call the static
>>> method multiple times and create multiple objects..
>>>
>>> --
>>> 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 this group at
>>> http://groups.google.com/group/algogeeks?hl=en.
>>>
>>
>>  --
>> 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 this group at
>> http://groups.google.com/group/algogeeks?hl=en.
>>
>
>
>
> --
> Regards:
> Rohit Singhal
>
>
>  --
> 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 this group at
> http://groups.google.com/group/algogeeks?hl=en.
>

-- 
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 this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] DE shaw question- urgent

2011-09-06 Thread ROHIT SINGHAL
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  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 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 provides a global point of access to it.  that it provides through a
> public static member function.
> This member function when invoked , first checks if the single instance has
> already been create, if yes it doesn't create a new 1, it gives you back the
> already created one, so even if you call it multiple times, you get the same
> object. nd thatz basically the intent behind.
>
> If you want to have more than one objects, you can modify this member
> function & can do that.
>
>
>
>
> On Mon, Sep 5, 2011 at 12:45 PM, Neha Singh 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 internally
>> calls the constructor and returns its reference. I can't understand why only
>> 1 object can be created as mentioned by you. As in, we can call the static
>> method multiple times and create multiple objects..
>>
>> --
>> 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 this group at
>> http://groups.google.com/group/algogeeks?hl=en.
>>
>
>  --
> 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 this group at
> http://groups.google.com/group/algogeeks?hl=en.
>



-- 
Regards:
Rohit Singhal

-- 
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 this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] DE shaw question- urgent

2011-09-06 Thread rahul vatsa
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 provides a global point of access to it.  that it provides through a
public static member function.
This member function when invoked , first checks if the single instance has
already been create, if yes it doesn't create a new 1, it gives you back the
already created one, so even if you call it multiple times, you get the same
object. nd thatz basically the intent behind.

If you want to have more than one objects, you can modify this member
function & can do that.



On Mon, Sep 5, 2011 at 12:45 PM, Neha Singh 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 internally
> calls the constructor and returns its reference. I can't understand why only
> 1 object can be created as mentioned by you. As in, we can call the static
> method multiple times and create multiple objects..
>
> --
> 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 this group at
> http://groups.google.com/group/algogeeks?hl=en.
>

-- 
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 this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] DE shaw question- urgent

2011-09-05 Thread Pratz mary
bcoz u cant keep reinitializing the same object

On 5 September 2011 22:15, Neha Singh  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 internally
> calls the constructor and returns its reference. I can't understand why only
> 1 object can be created as mentioned by you. As in, we can call the static
> method multiple times and create multiple objects..
>
> --
> 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 this group at
> http://groups.google.com/group/algogeeks?hl=en.
>



-- 
regards Pratima :)

-- 
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 this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] DE shaw question- urgent

2011-09-05 Thread Shravan Kumar
Calling the static method multiple times will return the same instance not
multiple instances, that is the essence of singleton design pattern.

Example: http://www.docjar.com/html/api/java/lang/Runtime.java.html

On Mon, Sep 5, 2011 at 10:45 PM, ravindra patel wrote:

> 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 getInstance()
>   {
>if (obj == null)
>{
>obj = new Test1(); // can call private constructor from
> within the class
> return obj;
>}
>// Will come here only if obj != null
>return obj;
>   }
> }
>
>  You can call Test1.getInstance to get the singleton object.
>
> HTH,
> - Ravindra
>
>
> On Mon, Sep 5, 2011 at 10:15 PM, Neha Singh 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 internally
>> calls the constructor and returns its reference. I can't understand why only
>> 1 object can be created as mentioned by you. As in, we can call the static
>> method multiple times and create multiple objects..
>>
>> --
>> 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 this group at
>> http://groups.google.com/group/algogeeks?hl=en.
>>
>
>  --
> 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 this group at
> http://groups.google.com/group/algogeeks?hl=en.
>

-- 
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 this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] DE shaw question- urgent

2011-09-05 Thread ravindra patel
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 getInstance()
  {
   if (obj == null)
   {
   obj = new Test1(); // can call private constructor from
within the class
return obj;
   }
   // Will come here only if obj != null
   return obj;
  }
}

 You can call Test1.getInstance to get the singleton object.

HTH,
- Ravindra

On Mon, Sep 5, 2011 at 10:15 PM, Neha Singh 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 internally
> calls the constructor and returns its reference. I can't understand why only
> 1 object can be created as mentioned by you. As in, we can call the static
> method multiple times and create multiple objects..
>
> --
> 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 this group at
> http://groups.google.com/group/algogeeks?hl=en.
>

-- 
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 this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] DE shaw question- urgent

2011-09-05 Thread Neha Singh
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 internally
calls the constructor and returns its reference. I can't understand why only
1 object can be created as mentioned by you. As in, we can call the static
method multiple times and create multiple objects..

-- 
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 this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] DE shaw question- urgent

2011-09-05 Thread Neha Singh
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 this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] DE shaw question- urgent

2011-09-05 Thread amrit harry
hey guys fro where i can find open source project to workon??

On Mon, Sep 5, 2011 at 9:44 PM, sukran dhawan wrote:

> for singletion class
>
>
> On Mon, Sep 5, 2011 at 9:42 PM, Sanjay Rajpal  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 resolution
>> operators. This is useful because user can create only one object of that
>> class, which is sometimes required.
>>
>> other case might be using static functions, but return a new object each
>> time. We can also keep a limit on the no. of objects that can be created for
>> a class.
>>
>>
>> Sanju
>> :)
>>
>>
>>
>> On Mon, Sep 5, 2011 at 9:06 AM, Neha Singh wrote:
>>
>>> 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 algogeeks@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> algogeeks+unsubscr...@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/algogeeks?hl=en.
>>>
>>
>>  --
>> 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 this group at
>> http://groups.google.com/group/algogeeks?hl=en.
>>
>
>  --
> 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 this group at
> http://groups.google.com/group/algogeeks?hl=en.
>



-- 
AMRIT

-- 
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 this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] DE shaw question- urgent

2011-09-05 Thread sukran dhawan
for singletion class

On Mon, Sep 5, 2011 at 9:42 PM, Sanjay Rajpal  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 resolution
> operators. This is useful because user can create only one object of that
> class, which is sometimes required.
>
> other case might be using static functions, but return a new object each
> time. We can also keep a limit on the no. of objects that can be created for
> a class.
>
>
> Sanju
> :)
>
>
>
> On Mon, Sep 5, 2011 at 9:06 AM, Neha Singh wrote:
>
>> 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 algogeeks@googlegroups.com.
>> To unsubscribe from this group, send email to
>> algogeeks+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/algogeeks?hl=en.
>>
>
>  --
> 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 this group at
> http://groups.google.com/group/algogeeks?hl=en.
>

-- 
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 this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] DE shaw question- urgent

2011-09-05 Thread Sanjay Rajpal
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 sometimes required.

other case might be using static functions, but return a new object each
time. We can also keep a limit on the no. of objects that can be created for
a class.


Sanju
:)



On Mon, Sep 5, 2011 at 9:06 AM, Neha Singh wrote:

> 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 algogeeks@googlegroups.com.
> To unsubscribe from this group, send email to
> algogeeks+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>

-- 
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 this group at 
http://groups.google.com/group/algogeeks?hl=en.