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 character terminates all character array strings a) b) . c) END

968


What would happen on forgetting [], while deallocating an array through new?

838


What are friend classes? What are advantages of using friend classes?

846


Why is main function important?

826


Describe about storage allocation and scope of global, extern, static, local and register variables?

1005


What are shallow and deep copy?

838


What are stacks?

816


Mention the storage classes in c++.

833


Is c++ a difficult language?

775


What are manipulators used for?

827


Difference between delete and free.

826


what are the iterator and generic algorithms.

1684


Why is c++ so fast?

745


Write a program using GUI concept for the scheduling algorithms in Operating system like SJF,FCFS etc..

3590


Does c++ vector allocate memory?

730