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
What are the advantages of polymorphism?
Can we create object of interface?
can inline function declare in private part of class?
What is encapsulation in ict?
What is polymorphism and why is it important?
What is polymorphism what is it for and how is it used?
Which type does string inherit from?
What are functions in oop?
Prepare me a program for the animation of train
What is oops concept with example?
when to use 'mutable' keyword and when to use 'const cast' in c++
What is multilevel inheritance explain with example?
What is object in oop?
Write a program to reverse a string using recursive function?
to find out the minimum of two integer number of two different classes using friend function