Originally posted by Igor Stojanovic:
Your is doing job for get_methods... just put your code from those 2 methods inside get_methods and delete show_vehicle_data, show_car_data
kind regards
Igor
Originally posted by Garry Meax:
my assignment requires me to use get_method to get data and at teh same time asking me to use constructors.
as you can see i have done it without using get_methods(but thats not what my teachers wants).
as i ma using constructor to pass the data, i don't know how to use get_methods and constructor at the same time.
- Liam...<br />- ' He who never sleeps... '
Originally posted by Liam Tiarnach:
get method - a method to that allows you to retrieve data from your class like the car name or whatever...
Originally posted by Garry Meax:
well liam, am i using the get_method correctly.
- Liam...<br />- ' He who never sleeps... '