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

What are the differences between a struct in C and in C++?

8 Answers   Amazon, Wipro,


What are the rules for naming an identifier?

0 Answers  


Can we define function inside main in c++?

0 Answers  


Why do we need function?

0 Answers  


Briefly describe a B+ tree. What is bulk loading in it?

0 Answers   Wipro,


Why c++ is not a pure oop language?

0 Answers  


How to declare an array of pointers to integer?

0 Answers  


How many static variables are created if you put one static member into a template class definition?

0 Answers  


What is a "RTTI"?

6 Answers   HCL,


Compare compile time polymorphism and Runtime polymorphism

1 Answers  


What is the difference between method and message?

5 Answers   HP,


Explain shallow copy?

0 Answers  


Categories