How do you initialize a class member,
class x {
const int i;
};
Answer Posted / guest
x()
{i=10;
}
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
Explain how the virtual base class is different from the conventional base classes of the opps.
What is virtual destructor? What is its use?
Can there be at least some solution to determine the number of arguments passed to a variable argument list function?
What is an overflow error?
Are strings mutable in c++?
Why do we need function?
Can we define a constructor as virtual in c++?
When does the c++ compiler create temporary variables?
Which is the best c++ software?
What do you mean by function overriding & function overloading in c++?
what is data abstraction in C++?
What is the use of c++ programming language in real life?
What do you mean by overhead in c++?
Do we have to use initialization list in spite of the assignment in constructors?
What is lvalue?