30. It is identified in a class as it has the method name __construct (for backwards-compatibility, a method with the same name as the class also works)
31.
32. Added a method to return the full name of the person whose profile it is.
33.
34.
35. Any arguments that need to be given to the instructor are given on creation.
48. Main reason is it is less efficient than procedural code
49. Thank You Any Questions? For these slides and other things please visit my brand new website: http://www.rickogden.com/
Editor's Notes
Programming Methodology – multiple interacting objects Self Sufficient – data is contained and manipulated by object “encapsulated data” - all data is stored within objects, and therefore organised and easily retrievable “protection of data” - access to data is controlled by the object
Modular – used in multiple apps
Talk through defining a class.
Instances of same class – same functionality, different data News article – headline, text, possible images – but differ