CS 130A → Lab 9 Source code

Working with Objects - Classes of Fruits

A program with 2 php classes each with >= 2 instantiations each.

This red fruit is a Mystery Fruit.
It is 3 inches wide and tastes crisp.
This yellow fruit is a banana.
It is 5 inches wide and tastes soft.
yellow
Cloudy is a white Bichon Frise and is 7 pounds.
Julie is a extra fluffy Golden Retriever and is 22 pounds.

Julie is eating a soft banana.