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 do you sort a sort function in c++ to sort in descending order?

1058


What is an html tag?

1227


What is pointer to member?

1171


What does asterisk mean in c++?

1163


What is the best free c++ compiler for windows?

1150


What is auto type c++?

1170


What is the purpose of templates in c++?

1088


Explain the concept of dynamic allocation of memory?

1152


Is there a sort function in c++?

1053


What is iomanip c++?

1112


Why is main function important?

1173


What is setf in c++?

1152


What do you mean by translation unit?

1132


What is token c++?

1089


Write about a nested class and mention its use?

1164