Hi experts! Can some one help in explaining the step i can take to create class name "Parking" in a parking ticket calculating system, with member function that will compute the total hours charge after spending 3. the parking rate is $1.50 for the 1st hour and $1.20 for every subsequent hour.
thanks alot.
kindly can you explain it a little further.
What i understood from the above is:
line 1: created class type "parkingCalc"
line 2-4: declares 2 member data with access specifier - private - of type - float
line 6-8: declares 3 member functions with access specifier - public - of type - void(what is
meaning of void here)
How can i use these parameters in the main function.
Thanks. i have read the section for classes, but could not make any meaning out of it. May be because i am new to C++.
I will really appreciate your input on the above.
By void he means the function will not return anything as it is .... Void. You can also have void as an argument parameter such as: int displayTotal (void);
In this example it would return an integer (that being the total parking ticket) but would require no additional information as an argument ... thus again being void.