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

What is operators in c++?

1011


What does the linker do?

1043


Can I have a reference as a data member of a class? If yes, then how do I initialise it?

1230


What is the difference between passing by reference and passing a reference?

1082


What is c++ virtual inheritance?

1138


What are the advantages of using friend classes?

1152


Why do we need constructors in c++?

1112


What is endl c++?

1100


What does I ++ mean in c++?

1107


Explain stack unwinding.

1078


Differentiate between an inspector and a mutator ?

1227


Can a list of string be stored within a two dimensional array?

1000


What is the best c++ book for beginners?

1153


Is c++ a good first language to learn?

1072


Can create new c++ operators?

1030