Using PHP build a page that uses functions, objects, and arrays. Create an object that is able to store and update the properties of an item. To accomplish this there must be a base object that has properties shared by all the items and then two sub-classes that extend the base object with properties specific to just the sub-class. the base object should have at least 3 different properties and the sub-classes should have at least 2 properties each. There should be at least three different datatypes across the various properties. The objects should contain functions that will allow to both get the values and modify the values. Lastly, create a two-dimensional array that is made up of a mixture of the two sub-classes. The web page should print out in a table the objects in the array and the information on the objects in an easy to read format. Lastly, after the table should be the PHP code for the objects and the PHP code used to create and display the array.
Get Free Quote!
333 Experts Online