Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
dvprog_14 [2017-09-01 14:54]
127.0.0.1 external edit
dvprog_14 [2019-09-09 09:26]
Daniel Viström
Line 6: Line 6:
   Attribut   Attribut
   Metod   Metod
 +  Konstruktor
   Arv   Arv
  
Line 41: Line 42:
 // Här börjar huvudprogrammet. // Här börjar huvudprogrammet.
  
-include('head.php');+include 'head.php';
  
 $a = new Counter(); $a = new Counter();
Line 62: Line 63:
 echo $b->getValue() . '<br>'; echo $b->getValue() . '<br>';
  
-include('foot.php');+include 'foot.php';
  
 </code> </code>
Line 70: Line 71:
 <code php> <code php>
 <?php <?php
-include('head.php')+include 'head.php'; 
-include('animals.php');+include 'animals.php';
  
  
Line 89: Line 90:
 echo $d1->info();  // Det kan vara bra att fatta vad som händer här... echo $d1->info();  // Det kan vara bra att fatta vad som händer här...
    
-include('foot.php');+include 'foot.php';
  
 </code> </code>