Programmation orientée objet / POO / OOP

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

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: https://en.wikipedia.org/wiki/Object-oriented_programming (vf)

  • info/myphp/poo_oop_programmation_orientee_objet.txt
  • Dernière modification: 2019/05/14 06:28
  • par radeff