Results 1 to 3 of 3

Thread: Singletn Class in brief

  1. #1
    Junior Member
    Join Date
    Feb 2007
    Answers
    1

    Singletn Class in brief

    Can any one tell me the Singletn Class in brief


  2. #2
    Junior Member
    Join Date
    Nov 2006
    Answers
    25

    Re: Singletn Class in brief

    singleton class is used to restrict instantiation of a class to one object. This is useful when u are sure that one object for a class will improve the performance instead of creating multiple objects for the same class. The singleton class returns the references when the object is already created.

    eg: when the organisation has the database which is accessed by all. If every one creates the object for establishing a connection to the database, then it will not be efficient, instead they can make it as singleton which will make use of only one connection. But the singleton class has drawbacks.....

    hope this will be helpfull for u.....


  3. #3
    Junior Member
    Join Date
    Feb 2007
    Answers
    23

    Re: Singletn Class in brief

    Here s a goos intro with code
    http://en.wikipedia.org/wiki/Singleton_pattern


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact