TEACHERS
GALLERY
PRICING
SIGN IN
TRY ZURU
GET STARTED
Loop
Audio
Interval:
5s
10s
15s
20s
60s
Play
1 of 5
Slide Notes
Download
Go Live
New! Free Haiku Deck for PowerPoint Add-In
Methods
Share
Copy
Download
0
63
Published on Feb 02, 2016
No Description
View Outline
MORE DECKS TO EXPLORE
PRESENTATION OUTLINE
1.
Methods
By: Rachel Rector
2.
What is a method?
procedure
subroutine
function
linked to a class
Photo by
tim caynes
3.
what are methods used for?
Communicate with the objects
Have objects within the class carry out tasks
Displaying an address
Opening and closing method for Windows
Displaying information
Photo by
winterofdiscontent
4.
How to write a method
Start with function display() {
$output .= $this->street_address
This recalls the object from the class to output this specific object
The next $output will assign the next object to be outputed
Conclude method with return $output; }
Photo by
solofotones
5.
How to make a method work
We must define the objects within the class that the method is linked to
This occurs in a php document and is saved as class.blank.inc
This is how that looks class Address { var $street_address;
Must also create HTML where users can enter information needed to
complete the method.
Photo by
marc falardeau
Friend of Haiku Deck
×
Error!