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
Does c++ have string data type?
How do you add an element to a set in c++?
Is there a sort function in c++?
Is c++ the best programming language?
What is a sequence in c++?
Differentiate between C and C++.
Which bit wise operator is suitable for turning off a particular bit in a number?
Are there any special rules about inlining?
Describe the advantages of operator overloading?
Why is main an int?
Which bitwise operator is used to check whether a particular bit is on or off?
Using a smart pointer can we iterate through a container?
What is ios :: in in c++?
How many types of comments are there in c++?
What is a block in c++?