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
why reinterpret cast is considered dangerous?
What is encapsulation with example?
What exactly is polymorphism?
What is class and example?
How oops is better than procedural?
What is difference between abstraction and encapsulation?
Can a varargs method be overloaded?
What is encapsulation oop?
What is class in oop with example?
What is object in oops?
What is advantage of inheritance?
What is the fundamental idea of oop?
What does and I oop mean in text?
Where is pseudocode used?
What is polymorphism give a real life example?