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

what is the order of initialization for data?

Answer Posted / avi

Data members of a class are initialized in the order they
are declared in class. in case class is derived from some
base class then the base class will be initialized first
followed by the derived class.

Is This Answer Correct ?    14 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If you push the numbers (in order) 1, 3, and 5 onto a stack, which pops out first a) 1 b) 5 c) 3

1436


Write a program which uses functions like strcmp(), strcpy()? etc

1157


Explain the isa and hasa class relationships.

1106


Is dev c++ a good compiler?

1017


What is the difference between public and private data members?

1235


Why do we learn c++?

1030


Why #include is used?

1119


What is the type of 'this' pointer? When does it get created?

1002


Difference between a copy constructor and an assignment operator.

1050


What is problem with overriding functions?

1119


Can we change the basic meaning of an operator in c++?

1160


How many characters are recognized by ANSI C++?

1465


What does the ios::ate argument do?

1240


What are the differences between java and c++?

1133


how to explain our contribution in the project?

3757