Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Tell me can a pure virtual function have an implementation?

979


Explain what are accessor methods?

1074


Will a C compiler always compile C++ code a) Yes b) No c) Only optimized compilers

1005


How static variables and local variablesare similar and dissimilar?

1006


What does return 0 do in c++?

989


Explain the difference between static and dynamic binding of functions?

1013


Is c++ primer good for beginners?

997


When is the copy constructor called?

1093


Can we define function inside main in c++?

960


what is data encapsulation in C++?

1020


Explain what are the sizes and ranges of the basic c++ data types?

1124


Why do we need constructors in c++?

1070


Can a function take variable length arguments, if yes, how?

967


Difference between an inspector and a mutator

1284


Does c++ support multilevel and multiple inheritances?

959