Programmation orientée objet / POO / OOP

//Create a new instance of Recipe called $sugarCookie
$sugarCookie = new Recipe();
$sugarCookie->addStep("Mix together");
$sugarCookie->addStep("Cut out shapes");
$sugarCookie->addStep("Put in oven");

Object-oriented programming (OOP) is a programming paradigm based on the concept of “objects”, which can contain data, in the form of fields (often known as attributes), and code, in the form of procedures (often known as methods).

source: (vf)

D'excellent tutos + vidéos:

  • info/poo.txt
  • Dernière modification : 2020/10/10 11:34
  • de radeff