info:poo

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)

D'excellent tutos + vidéos:

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