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

When will a constructor executed?

Answer Posted / priya

Constructor gets called when we create an object,or when we
allocated memory using new operator:

void main()
{
test *t = new test;
delete t;
}

Is This Answer Correct ?    13 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer

2198


What is a null tree?

1192


What is abstraction encapsulation?

1191


What are the features of oop?

1258


Can enum be null?

1068


what are the realtime excercises in C++?

2894


What is use of overloading?

1188


What is the diamond problem in inheritance?

1198


Who invented oop?

1191


any one please tell me the purpose of operator overloading

2441


Write a c++ program to display pass and fail for three student using static member function

3457


Why is polymorphism needed?

1123


Can you explain polymorphism?

1151


What is the purpose of enum?

1056


write string class as your own class in java without using any built-in function

2549