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

How does c++ structure differ from c++ class?

1127


Can class objects be passed as function arguments?

1066


How can you quickly find the number of elements stored in a static array?

1095


What is switch case in c++ syntax?

1114


Define vptr.

1030


Define whitespace in C++.

1211


What is the use of endl?

987


List the merits and demerits of declaring a nested class in C++?

1026


What do you mean by funtion prototype?

1082


Is swift a good first language?

1046


What is the difference between global int and static int declaration?

1064


What is the purpose of templates in c++?

1037


What is guard code in c++?

1170


What is a constructor and how is it called?

1049


What is a storage class used in c++?

1077