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 is debug class?what is trace class? What differences are between them? With examples.

1604


What are objects in oop?

606


What is the diamond problem in inheritance?

576


how to get the oracle certification? send me the answer

1668


Why is oop useful?

600






What is difference between abstraction and encapsulation?

590


String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?

1938


What is difference between multiple inheritance and multilevel inheritance?

601


What is difference between oop and pop?

611


What is difference between data abstraction and encapsulation?

613


What is class and example?

567


What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?

2100


How many human genes are polymorphic?

570


What is a class in oop?

598


write knight tour problem which is present in datastructure

2160