{"id":141,"date":"2014-04-20T07:02:00","date_gmt":"2014-04-20T06:02:00","guid":{"rendered":"https:\/\/debuggersspace.com\/index.php\/2014\/04\/20\/what-is-singleton-class\/"},"modified":"2014-04-20T07:02:00","modified_gmt":"2014-04-20T06:02:00","slug":"what-is-singleton-class","status":"publish","type":"post","link":"https:\/\/debuggersspace.com\/index.php\/2014\/04\/20\/what-is-singleton-class\/","title":{"rendered":"What is singleton class?"},"content":{"rendered":"<div class='booster-block booster-read-block'>\n                <div class=\"twp-read-time\">\n                \t<i class=\"booster-icon twp-clock\"><\/i> <span>Read Time:<\/span>23 Second                <\/div>\n\n            <\/div><div dir=\"ltr\" style=\"text-align: left;\">\n<span style=\"background-color: white; line-height: 17px;\"><span style=\"font-family: Times, Times New Roman, serif;\">-In object-oriented programming , a singleton class is a class that can have only one object (an instance of the class) at a time. For example, using Visual C++ , the &#8220;Application&#8221; class is an example of a singleton class. You can only create only one object of an Application class.<\/span><\/span><br \/>\n<span style=\"background-color: white; line-height: 17px;\"><span style=\"font-family: Times, Times New Roman, serif;\"><br \/><\/span><\/span><br \/>\n<span style=\"font-family: Times, Times New Roman, serif;\"><span style=\"background-color: white; line-height: 17px;\">&#8211;<\/span><span style=\"background-color: white; line-height: 17px;\">A class which is having only single object is called singleton.<\/span><\/span><br \/>\n<span style=\"background-color: white; line-height: 17px;\"><span style=\"font-family: Times, Times New Roman, serif;\"><br \/><\/span><\/span><br \/>\n<span style=\"font-family: Times, Times New Roman, serif;\"><span style=\"background-color: white; line-height: 17px;\">&#8211;<\/span><span style=\"background-color: white; line-height: 17px;\">Logger classes. For logging purposes of an application there is usually one logger instance required.<\/span><\/span><\/div>\n","protected":false},"excerpt":{"rendered":"<p>-In object-oriented programming , a singleton class is a class that can have only one object (an instance of the class) at a time. For example, using Visual C++ , the &#8220;Application&#8221; class is an example of a singleton class. You can only create only one object of an Application class. &#8211;A class which is [&hellip;]<\/p>\n","protected":false},"author":43,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","footnotes":""},"categories":[24],"tags":[],"class_list":["post-141","post","type-post","status-publish","format-standard","hentry","category-c-net"],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false},"uagb_author_info":{"display_name":"Himanshu Namdeo","author_link":"https:\/\/debuggersspace.com\/author\/admin\/"},"uagb_comment_info":0,"uagb_excerpt":"-In object-oriented programming , a singleton class is a class that can have only one object (an instance of the class) at a time. For example, using Visual C++ , the &#8220;Application&#8221; class is an example of a singleton class. You can only create only one object of an Application class. &#8211;A class which is&hellip;","_links":{"self":[{"href":"https:\/\/debuggersspace.com\/index.php\/wp-json\/wp\/v2\/posts\/141"}],"collection":[{"href":"https:\/\/debuggersspace.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/debuggersspace.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/debuggersspace.com\/index.php\/wp-json\/wp\/v2\/users\/43"}],"replies":[{"embeddable":true,"href":"https:\/\/debuggersspace.com\/index.php\/wp-json\/wp\/v2\/comments?post=141"}],"version-history":[{"count":0,"href":"https:\/\/debuggersspace.com\/index.php\/wp-json\/wp\/v2\/posts\/141\/revisions"}],"wp:attachment":[{"href":"https:\/\/debuggersspace.com\/index.php\/wp-json\/wp\/v2\/media?parent=141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/debuggersspace.com\/index.php\/wp-json\/wp\/v2\/categories?post=141"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/debuggersspace.com\/index.php\/wp-json\/wp\/v2\/tags?post=141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}