Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Live example for static function?



Live example for static function?..

Answer / sachinmundhra

Live Example for static function is Singleton class.

Static Method is used and called to get the instance of
class.

class Base
(
private:
Base()
public:
static Base* GetObject() // This is a static method
};

Is This Answer Correct ?    4 Yes 0 No

Post New Answer

More C++ General Interview Questions

Explain unexpected() function?

0 Answers  


Under what conditions is multiple inheritance not recommended?

1 Answers  


What are static and dynamic type checking?

0 Answers  


In a function declaration what does extern means?

0 Answers   Flextronics,


Difference between Top down and bottom up approaches for a given project ?

14 Answers   BSNL, CSC, HCL, HP, IIT, Infosys, Siemens,


What are the benefits of operator overloading?

0 Answers  


How does the copy constructor differ from the assignment operator (=)?

0 Answers  


What are the 4 types of library?

0 Answers  


What are the two types of comments, and how do they differ?

0 Answers  


Difference between Constructors and static constructors?

3 Answers   IBM, TCS,


Can recursive program be written in C++?

0 Answers  


What is virtual constructor paradigm?

5 Answers   HCL, HP,


Categories