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

why reinterpret cast is considered dangerous?

1995


What is encapsulation with example?

673


What exactly is polymorphism?

692


What is class and example?

671


How oops is better than procedural?

676






What is difference between abstraction and encapsulation?

691


Can a varargs method be overloaded?

702


What is encapsulation oop?

672


What is class in oop with example?

705


What is object in oops?

718


What is advantage of inheritance?

778


What is the fundamental idea of oop?

737


What does and I oop mean in text?

731


Where is pseudocode used?

645


What is polymorphism give a real life example?

639