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

What are the advantages of polymorphism?

1033


Can we create object of interface?

1135


can inline function declare in private part of class?

4417


What is encapsulation in ict?

1062


What is polymorphism and why is it important?

1042


What is polymorphism what is it for and how is it used?

1023


Which type does string inherit from?

1109


What are functions in oop?

1058


Prepare me a program for the animation of train

2478


What is oops concept with example?

1031


when to use 'mutable' keyword and when to use 'const cast' in c++

2165


What is multilevel inheritance explain with example?

1151


What is object in oop?

1121


Write a program to reverse a string using recursive function?

2351


to find out the minimum of two integer number of two different classes using friend function

2145