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 character terminates all character array strings a) b) . c) END
What would happen on forgetting [], while deallocating an array through new?
What are friend classes? What are advantages of using friend classes?
Why is main function important?
Describe about storage allocation and scope of global, extern, static, local and register variables?
What are shallow and deep copy?
What are stacks?
Mention the storage classes in c++.
Is c++ a difficult language?
What are manipulators used for?
Difference between delete and free.
what are the iterator and generic algorithms.
Why is c++ so fast?
Write a program using GUI concept for the scheduling algorithms in Operating system like SJF,FCFS etc..
Does c++ vector allocate memory?