A
andy
A question about about passing a class by reference:
Say you have a class called car, and within that you have two objects
called car01 and car02.
Within the class I have an int variable called wheels.
I have declared the following:
int number_of_wheels( const car &new_wheels)
Now how do I within this function access the variables 'wheels' of
object car01 ?
Thanks.
Say you have a class called car, and within that you have two objects
called car01 and car02.
Within the class I have an int variable called wheels.
I have declared the following:
int number_of_wheels( const car &new_wheels)
Now how do I within this function access the variables 'wheels' of
object car01 ?
Thanks.