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


Please Help Members By Posting Answers For Below Questions

What happens when you make call 'delete this;'?

690


What is an adjust field format flag?

764


What is a null object in c++?

740


If you don’t declare a return value, what type of return value is assumed?

633


How do c++ struct differs from the c++ class?

701






What is data binding in c++?

596


What's c++ used for?

676


What is the return value of the insertion operator?

713


What do you mean by overhead in c++?

680


You run a shell on unix system. How would you tell which shell are you running?

756


How many namespaces are there in c++?

643


Why do we use pointers in c++?

680


What are literals in C++?

676


What is the difference between struct and class?

878


How does the copy constructor differ from the assignment operator (=)?

715