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...

Difference between Constructors and static constructors?

Answer Posted / venkataramakrishna. danduri

The main thing is the constructoe can't be Static, int or
any other data type. It will simpley throws a error
messgae. It is just to confuse the candidate.

Example:
class A
{
public:
static A(){ a = 0;}
int a;
};

void main()
{
A a;
}

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How the memory management in vectors are being done. What happens when the heap memory is full, and how do you handle it ?

2316


What is an accessor in c++?

1078


What does h mean in maths?

1221


What is a literal in c++?

1107


Can I run c program in turbo c++?

1038


What is the hardest coding language to learn?

1042


What is c++ vb?

1103


What is ofstream c++?

1088


Why namespace is used in c++?

1073


Is c++ harder than java?

1076


When there is a global variable and local variable with the same name, how will you access the global variable?

1103


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

1153


How would you use the functions randomize() and random()?

1083


What are arithmetic operators?

1000


What number of digits that can be accuratly stored in a float (based on the IEEE Standard 754)? a) 6 b) 38 c) An unlimited number

1278