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
dvprog_14 [2020-05-18 20:20]
Daniel Viström
dvprog_14 [2022-07-18 13:20] (current)
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).