Page 177 - Open Soource Technologies 304.indd
P. 177
Sarabjit Kumar, Lovely Professional University Unit 8: Objects
Unit 8: Objects Notes
CONTENTS
Objectives
Introduction
8.1 The Basics of Objects
8.2 Terminology
8.3 Creating an Object
8.4 Accessing Properties and Methods
8.4.1 Characteristics of Static Keyword
8.5 Classes
8.5.1 Constructors and Destructors
8.5.2 Visibility
8.5.3 Inheritance
8.5.4 Abstract Classes
8.5.5 Static Classes
8.5.6 Class Constants
8.5.7 The “final” Keywords
8.6 Introspection
8.6.1 Examining Classes
8.6.2 Examining an Object
8.6.3 Sample Introspection Program
8.7 Serialization
8.8 Summary
8.9 Keywords
8.10 Review Questions
8.11 Further Readings
Objectives
After studying this unit, you will be able to:
• Discuss the basics of objects
• Explain the terminologies of objects
• Understand how to create an object in PHP
• Understand the use of properties and methods
• Explain the concepts of classes
• Discuss object introspection
• Understand the serialization
LOVELY PROFESSIONAL UNIVERSITY 171