Guest User

Oven update :')

a guest
May 28th, 2012
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. <?php
  2. Class Oven {
  3. private $graden;
  4. private $voedsel;
  5.  
  6. public function setGraden($value){
  7. $this->graden = $value;
  8. }
  9.  
  10. public function setVoedsel($value){
  11. $this->voedsel = $value;
  12. }
  13.  
  14. public function getGraden(){
  15. return $this->graden;
  16. }
  17.  
  18. public function getVoedsel(){
  19. return $this->voedsel;
  20. }
  21. }
  22.  
  23. $oven = new Oven();
  24.  
  25. $oven->setGraden(100);
  26. $oven->setVoedsel('pizza');
  27.  
  28. echo 'Het is ' . $oven->getGraden() . ' graden in de oven. We bakken: ' . $oven->getVoedsel();
  29. ?>
Advertisement
Add Comment
Please, Sign In to add comment