Adding Child Features5:18 with Alena Holligan
A child class will perform all the same functions and utilize the same properties as the parent class. Additionally, a child may add its own attributes and abilities.
Remember that the parent class will NOT know about any properties or methods added to the child.
- strip_tags() - Strip HTML and PHP tags from a string. You can use the optional second parameter to specify tags which should not be stripped.
- trim() - Strip whitespace (or other characters) from the beginning and end of a string
- get_class() - Returns the name of the class of an object
- is_a() - Checks if the object is of this class or has this class as one of its parents
Additional Features You Could "extend" a Listing
- code of conduct
- call for papers
You need to sign up for Treehouse in order to download course files.Sign up