How do you initialize a class member,
class x {
const int i;
};
Answer Posted / anandam niranjan
i think it's not possible
| Is This Answer Correct ? | 5 Yes | 6 No |
Post New Answer View All Answers
write a c++ program to create class student having datamember name,Roll_no,age,and branch intilcization all the member using constructor print the all the details on the screen.
What are signs of manipulation?
Specify different types of decision control statements?
Explain polymorphism?
Why do we need templates?
What are the advantages of using pointers in a program?
What are the 4 types of library?
How the programmer of a class should decide whether to declare member function or a friend function?
Refer to a name of class or function that is defined within a namespace?
Ask to write virtual base class code?
What language is a dll written in?
What is a tuple c++?
We all know that a const variable needs to be initialized at the time of declaration. Then how come the program given below runs properly even when we have not initialized p?
Explain deep copy?
Define virtual constructor.