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
What is operators in c++?
What does the linker do?
Can I have a reference as a data member of a class? If yes, then how do I initialise it?
What is the difference between passing by reference and passing a reference?
What is c++ virtual inheritance?
What are the advantages of using friend classes?
Why do we need constructors in c++?
What is endl c++?
What does I ++ mean in c++?
Explain stack unwinding.
Differentiate between an inspector and a mutator ?
Can a list of string be stored within a two dimensional array?
What is the best c++ book for beginners?
Is c++ a good first language to learn?
Can create new c++ operators?