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

Why do you use the namespace feature?

1051


What is the use of setfill in c++?

1038


What is buffer and example?

949


Will the following program execute?

997


What is a class template in c++?

1013


Can turbo c++ run c program?

1040


What is private public protected in c++?

990


Do you know about C++ 11 standard?

1044


Explain what is class definition in c++ ?

1054


Out of fgets() and gets() which function is safe to use?

1078


Are strings mutable in c++?

1098


Define whitespace in C++.

1152


What are features of c++?

1114


What are the basic data types used in c++?

1007


How does a C++ structure differ from a C++ class?

1076