You don't have to output the data on another page.
You can save the class (Car) in a separate file e.g. class.php
Then include the file into the page you want to use to display the data manipulated by the class.
Here is the code to include the file if you have saved it on the same folder:
After including the file, you can then be able to use the functions/methods and properties/variables of that class on the
page you want to use to display the data.
The page names are given, what you mean to say is that we are not told what names to use as links to the pages.
OOP_properties.php is the page
OOP_properties is the page name
<a href="OOP_properties.php">OOP_properties</a> is a link to the above mentioned page (see code example below)
Well using steps as the links would be inappropriate because step 1 to step 4 have to be done on the same page.
We had a discussion about the names to be used as links in one of my posts and we concluded that the names
of pages will be used as the link names.e.g. OOP_properties would be used for OOP_properties.php