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 the difference between c++ and java.

0 Answers  


What is general form of pure virtual function? Explain?

0 Answers  


What is a catch statement?

0 Answers  


What is virtual destructors? Why they are used?

1 Answers  


Is eclipse good for c++?

0 Answers  


What does it mean to declare a member variable as static?

0 Answers  


Can we declare destructor as static? Explain?

3 Answers  


Write a single instruction that will find the remainder of integral division when x is divided by y. Have the answer stored in z.

1 Answers  


What is the exit function in c++?

0 Answers  


When must you use a pointer rather than a reference?

0 Answers  


When is dynamic checking necessary?

0 Answers  


Why can you not make a constructor as const?

3 Answers  


Categories