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 Create a file named TravelPhoto.class.php and within it define a class named 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!