Chapter 4 - OOP

Abstraction Procedural Term OOP Term
noun variable

property or attribute.

These must be declared as private public or protected and if initialized, must be given a static value (not expression based). They appear in new instances of the object without the var symbol($).

The $this variable in a class always refers to the current instance (i.e., the object involved) of that class.

verb function method
a group of abstracted things and actions No direct correlate - one could argue an include file often performs this role - but not in a defined or heirarchical manner. class
    constructor: a special method using the convention syntax __contructor(){}, that will define things that should always be done upon a new instance of an object.

 

Hello WorldCiao, mondo!
Hall wereldBonjour, monde!
Toggle Sidebar