Question: Create a file named TravelPhoto.class.php and within it define a class named TravelPhoto, which has private properties: date, fileName, description, title, latitude, longitude, and ID.
Create a file named
TravelPhoto.class.php
and within it define a class
named TravelPhoto, which has private
properties: date, fileName, description, title, latitude, longitude, and ID.
2. Define a static member variable named photoID, which will be used to set each
instance's ID value and then be incremented, all inside the class constructor.
3. Create a constructor that takes in fileName, title, description, latitude,
and longitude.
4. Implement the
toString() method that should return the HTML markup for
an element for the member data within this object. This element
should also have alt and title attributes set to the value of the
object's title property.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
