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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What does override mean in c++?

1066


What is flush programming?

1015


What is the extraction operator and what does it do?

1085


Can there be at least some solution to determine the number of arguments passed to a variable argument list function?

1002


Which programming language is best?

988


What are the rules for naming an identifier?

1064


What is c++ virtual inheritance?

1138


What is the protected keyword used for?

1113


What does #define mean in c++?

1271


Why do we use constructor?

1060


Why are pointers not used in c++?

1139


Can malloc be used in c++?

1079


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

1138


What is c++ hiding?

1214


How would you find out if a linked-list is a cycle or not?

1009