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-11-13 01:08]
Daniel Viström
dvprog_14 [2019-12-06 16:11]
Daniel Viström
Line 1: Line 1:
-====== Genomgång 11 - Objektorienterad programmering ======+====== Genomgång - Objektorienterad programmering ======
  
 Viktgt att du lär dig vad som menas med följande och att du kan skilja dem åt: Viktgt att du lär dig vad som menas med följande och att du kan skilja dem åt:
Line 42: 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 63: Line 63:
 echo $b->getValue() . '<br>'; echo $b->getValue() . '<br>';
  
-include('foot.php');+include 'foot.php';
  
 </code> </code>
Line 71: Line 71:
 <code php> <code php>
 <?php <?php
-include('head.php')+include 'head.php'; 
-include('animals.php');+include 'animals.php';
  
  
Line 90: 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>