Differences

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

Link to this comparison view

Both sides previous revision Previous revision
dvprog_14 [2020-05-18 20:20]
Daniel Viström
dvprog_14 [2020-05-18 20:20] (current)
Daniel Viström
Line 71: Line 71:
 <code php> <code php>
 <?php <?php
-include '​head.php';​ 
 include '​animals.php';​ include '​animals.php';​
 +include '​head.php';​
  
 $a1 = new Animal(); ​  // Skapar en ny instans (objekt) av klassen Animal. Vikten blir 0 (se klassen). $a1 = new Animal(); ​  // Skapar en ny instans (objekt) av klassen Animal. Vikten blir 0 (se klassen).