Advertisement
Guest User

Untitled

a guest
May 27th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. <?php
  2. abstract class Rownanie
  3. {
  4. abstract protected function wyswietl();
  5. abstract protected function setDane($dane);
  6. }
  7.  
  8. class Dane extends Rownanie
  9. {
  10. private $tab;
  11.  
  12. public function __construct(){
  13. $this->tab = array(0,1,2,3);
  14. }
  15.  
  16. public function wyswietl(){}
  17. public function setDane($dane){
  18. $this->tab[0] = 4;
  19. $this->tab[1] = 5;
  20. $this->tab[2] = 3;
  21. $this->tab[3] = 2;
  22. }
  23.  
  24. }
  25.  
  26. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement