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

how do u initialize the constant variables

Answer Posted / bibin joy

class A
{
const int mConstVal ;
A():mConstVal (10)
{

}

}

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?

1963


What is the diamond problem in inheritance?

1198


What is difference between oop and pop?

1237


What is encapsulation oop?

1102


Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)

4209


What are the types of abstraction?

1151


How to use CMutex, CSemaphore in VC++ MFC

4835


What is the purpose of polymorphism?

1170


Why interface is used?

1064


Why do we need polymorphism in c#?

1218


What do you mean by variable?

1091


What is object in oop with example?

1299


What is polymorphism oop?

1106


How oops is better than procedural?

1146


How is polymorphism achieved?

1109