Hi i need to Acess a variable "int Intval" in the below
mentioned code .How to Access it guys i am waiting for your
reply
Answer Posted / vic
Write a getter method?
int val::getVal() {
return intval;
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Tell me can a pure virtual function have an implementation?
Explain what are accessor methods?
Will a C compiler always compile C++ code a) Yes b) No c) Only optimized compilers
How static variables and local variablesare similar and dissimilar?
What does return 0 do in c++?
Explain the difference between static and dynamic binding of functions?
Is c++ primer good for beginners?
When is the copy constructor called?
Can we define function inside main in c++?
what is data encapsulation in C++?
Explain what are the sizes and ranges of the basic c++ data types?
Why do we need constructors in c++?
Can a function take variable length arguments, if yes, how?
Difference between an inspector and a mutator
Does c++ support multilevel and multiple inheritances?