SlideShare a Scribd company logo
1 of 19
OBJECT ORIENTED
PROGRAMMING
PAPER NAME : PROGRAMMING IN PHP
STAFF NAME : MS.V.SHANTHI M.SC,M.PHIL,M,TECH,PGDCA.
CLASS : III BCA
SEMESTER : VI
Object oriented programming
 PHP is a server side scripting language,
mainly used for web development but also
used as a general proposition
programming language. Object Oriented
Programming, is a type of
programming language principle added to php
, that helps in building complex, reusable web
applications.
OBJECT ORIENTED CONCEPTS
• Class
• Object
• Member Variable
• Member Function
• Inheritance
• Parent Class
• Child Class
• Polymorphism
• Data Abstraction
• Encapsulation
• Constructor
• Destructor
Class:
 This is a programmer defined data type which
inject local functions as well as local data. You
can think of a class as a template for making
many specimen of the same kind of object.
Object:
 An single instance of the data structure
defined by a class. You define a class once and
then make many objects that befit to it.
Objects are also known as specimen.
Member Variable:
 These are the variables defined inside a class.
This data will be insensible to the outside of
the class and can be accessed via member
functions. These variables are called virtue of
the object once an object is created.
Member function :
 These are the function clear inside a class and
are used to admission object data.
Inheritance:
 When a class is defined by inheriting current
function of a parent class then it is called
inheritance. Here child class will receive all or
few member functions and variables of a
parent class.
Parent class:
 A class that is inborn from by another class.
This is also called a base class or super class.
Child class:
 A class that receives from another class. This
is also called a subclass or derived class.
Polymorphism:
 This is an object oriented idea where same
function can be used for dissimilar purposes.
For example function name will remain same
but it take different number of clash and can
do different task.
Overloading:
 A type of polymorphism in which some or all
of operators have different implementations
build upon on the types of their arguments.
Build upon functions can also be overloaded
with different implementation.
Data Abstraction:
 Any representation of data in which the
implementation details are occult.
Encapsulation:
 Refers to a idea where we encapsulate all the
data and member functions constant to form
an object.
Constructor:
 Refers to a exceptional type of function which
will be called spontaneously whenever there is
an object formation from a class.
Destructor:
 Refers to a exceptional type of function which
will be called spontaneously whenever an
object is deleted or goes out of scope.
PHP: Inheritance
• Inheritance is a well-established programming
principle.
• Inheritance allows classes to form a hierarchy
like a family tree.
• Allows subclasses to share the techniques and
belongings (which are public or protected) of
its superclass.
• Superclass is the parent class.
• A subclass can add properties and methods.
• Inheritance allows reusing code.
PHP: Inheritance
INTERFACES:
 An interface is a explanation of the actions
that an entity can do.
 Interface is written in the similar way as
the class the statement with interface
keyword.
Rules of Interfaces:
• All methods professed in an interface must be
public; this is the nature of an interface.
• All methods in the interface must be applied
within a class; failure to do so will result in a
fatal error.
• The class applying the interface must use the
exact same technique signatures as are defined
in the interface
• Interfaces can be prolonged like classes using
the spreads operator.
Abstract Classes:
 An abstract class is a class that contains at
least one abstract technique. The abstract
technique is function declaration without
anybody and it has the only name of the
technique and its parameters.
 There can be any number of techniques in the
class and we have to announce the class as
abstract only when there is an abstract method
PHP: Interfaces
• Provides methods to implement.
• Derived classes may implement more than one
interface.
• Interfaces may succeed to from other
interfaces using the extends keyword.
• All techniques are supposed to be public in the
interface definition can be defined explicitly as
public or implicitly.
• When a class equipment multiple interfaces
there cannot be any naming collision between
methods defined in the different interfaces.
PHP: Object Cloning
• Cloning is used to produce a copy of an object.
• An entity copy is produced by using
the clone keyword.
• When an entity is cloned, PHP 5 will perform
a shallow copy of all of the object's properties.
• PHP affords a special method __clone to copy
an object.
• Once the cloning is complete, if a __clone()
method is defined, then the newly created
object's __clone() method will be called, to
allow any necessary properties that need to be
changed.

More Related Content

What's hot

General oop concepts
General oop conceptsGeneral oop concepts
General oop conceptsAvneesh Yadav
 
Object oriented vs. object based programming
Object oriented vs. object based  programmingObject oriented vs. object based  programming
Object oriented vs. object based programmingMohammad Kamrul Hasan
 
Object Oriented Programming Overview for the PeopleSoft Developer
Object Oriented Programming Overview for the PeopleSoft DeveloperObject Oriented Programming Overview for the PeopleSoft Developer
Object Oriented Programming Overview for the PeopleSoft DeveloperLee Greffin
 
Object oriented programming tutorial
Object oriented programming tutorialObject oriented programming tutorial
Object oriented programming tutorialGhulam Abbas Khan
 
Object Oriented Programming Principles
Object Oriented Programming PrinciplesObject Oriented Programming Principles
Object Oriented Programming PrinciplesAndrew Ferlitsch
 
Polymorphism
PolymorphismPolymorphism
PolymorphismNuha Noor
 
PHP - Procedural To Object-Oriented
PHP - Procedural To Object-OrientedPHP - Procedural To Object-Oriented
PHP - Procedural To Object-OrientedVance Lucas
 
Practical OOP In Java
Practical OOP In JavaPractical OOP In Java
Practical OOP In Javawiradikusuma
 
Advanced software engineering lab 2
Advanced software engineering lab 2Advanced software engineering lab 2
Advanced software engineering lab 2asimnawaz54
 
Structure of java program diff c- cpp and java
Structure of java program  diff c- cpp and javaStructure of java program  diff c- cpp and java
Structure of java program diff c- cpp and javaMadishetty Prathibha
 
Introduction to oop and java fundamentals
Introduction to oop and java fundamentalsIntroduction to oop and java fundamentals
Introduction to oop and java fundamentalsAnsgarMary
 

What's hot (19)

General oop concepts
General oop conceptsGeneral oop concepts
General oop concepts
 
General oop concept
General oop conceptGeneral oop concept
General oop concept
 
Object oriented vs. object based programming
Object oriented vs. object based  programmingObject oriented vs. object based  programming
Object oriented vs. object based programming
 
Object Oriented Programming Overview for the PeopleSoft Developer
Object Oriented Programming Overview for the PeopleSoft DeveloperObject Oriented Programming Overview for the PeopleSoft Developer
Object Oriented Programming Overview for the PeopleSoft Developer
 
OOP in Java
OOP in JavaOOP in Java
OOP in Java
 
Object oriented programming tutorial
Object oriented programming tutorialObject oriented programming tutorial
Object oriented programming tutorial
 
Object Oriented Programming Principles
Object Oriented Programming PrinciplesObject Oriented Programming Principles
Object Oriented Programming Principles
 
Polymorphism
PolymorphismPolymorphism
Polymorphism
 
PHP - Procedural To Object-Oriented
PHP - Procedural To Object-OrientedPHP - Procedural To Object-Oriented
PHP - Procedural To Object-Oriented
 
Practical OOP In Java
Practical OOP In JavaPractical OOP In Java
Practical OOP In Java
 
Packages and interfaces
Packages and interfacesPackages and interfaces
Packages and interfaces
 
01 introduction to oop and java
01 introduction to oop and java01 introduction to oop and java
01 introduction to oop and java
 
Advanced software engineering lab 2
Advanced software engineering lab 2Advanced software engineering lab 2
Advanced software engineering lab 2
 
Structure of java program diff c- cpp and java
Structure of java program  diff c- cpp and javaStructure of java program  diff c- cpp and java
Structure of java program diff c- cpp and java
 
[OOP - Lec 01] Introduction to OOP
[OOP - Lec 01] Introduction to OOP[OOP - Lec 01] Introduction to OOP
[OOP - Lec 01] Introduction to OOP
 
Introduction to oop and java fundamentals
Introduction to oop and java fundamentalsIntroduction to oop and java fundamentals
Introduction to oop and java fundamentals
 
[OOP - Lec 06] Classes and Objects
[OOP - Lec 06] Classes and Objects[OOP - Lec 06] Classes and Objects
[OOP - Lec 06] Classes and Objects
 
Cs8392 oops 5 units notes
Cs8392 oops 5 units notes Cs8392 oops 5 units notes
Cs8392 oops 5 units notes
 
Java Object Oriented Programming
Java Object Oriented Programming Java Object Oriented Programming
Java Object Oriented Programming
 

Similar to OO Programming in PHP

Similar to OO Programming in PHP (20)

UNIT-IV WT web technology for 1st year cs
UNIT-IV WT web technology for 1st year csUNIT-IV WT web technology for 1st year cs
UNIT-IV WT web technology for 1st year cs
 
Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programming
 
Php oop (1)
Php oop (1)Php oop (1)
Php oop (1)
 
Introduction to OOP concepts
Introduction to OOP conceptsIntroduction to OOP concepts
Introduction to OOP concepts
 
Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programming
 
Lecture-10_PHP-OOP.pptx
Lecture-10_PHP-OOP.pptxLecture-10_PHP-OOP.pptx
Lecture-10_PHP-OOP.pptx
 
Principles of OOPs.pptx
Principles of OOPs.pptxPrinciples of OOPs.pptx
Principles of OOPs.pptx
 
Introduction to oop
Introduction to oopIntroduction to oop
Introduction to oop
 
OOPS – General Understanding in .NET
OOPS – General Understanding in .NETOOPS – General Understanding in .NET
OOPS – General Understanding in .NET
 
C#.net interview questions for dynamics 365 ce crm developers
C#.net interview questions for dynamics 365 ce crm developersC#.net interview questions for dynamics 365 ce crm developers
C#.net interview questions for dynamics 365 ce crm developers
 
Lecture 8
Lecture 8Lecture 8
Lecture 8
 
full defination of final opp.pptx
full defination of final opp.pptxfull defination of final opp.pptx
full defination of final opp.pptx
 
Oops
OopsOops
Oops
 
Unit 4
Unit 4Unit 4
Unit 4
 
Object-oriented programming 3.pptx
Object-oriented programming 3.pptxObject-oriented programming 3.pptx
Object-oriented programming 3.pptx
 
OOP interview questions & answers.
OOP interview questions & answers.OOP interview questions & answers.
OOP interview questions & answers.
 
Object oriented programming 6 oop with c++
Object oriented programming 6  oop with c++Object oriented programming 6  oop with c++
Object oriented programming 6 oop with c++
 
Oop
OopOop
Oop
 
C++ first s lide
C++ first s lideC++ first s lide
C++ first s lide
 
Basic concepts of oops
Basic concepts of oopsBasic concepts of oops
Basic concepts of oops
 

Recently uploaded

Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxUnboundStockton
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerunnathinaik
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 

Recently uploaded (20)

Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docx
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developer
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 

OO Programming in PHP

  • 2. PAPER NAME : PROGRAMMING IN PHP STAFF NAME : MS.V.SHANTHI M.SC,M.PHIL,M,TECH,PGDCA. CLASS : III BCA SEMESTER : VI
  • 3. Object oriented programming  PHP is a server side scripting language, mainly used for web development but also used as a general proposition programming language. Object Oriented Programming, is a type of programming language principle added to php , that helps in building complex, reusable web applications.
  • 4. OBJECT ORIENTED CONCEPTS • Class • Object • Member Variable • Member Function • Inheritance • Parent Class • Child Class • Polymorphism • Data Abstraction • Encapsulation • Constructor • Destructor
  • 5. Class:  This is a programmer defined data type which inject local functions as well as local data. You can think of a class as a template for making many specimen of the same kind of object.
  • 6. Object:  An single instance of the data structure defined by a class. You define a class once and then make many objects that befit to it. Objects are also known as specimen.
  • 7. Member Variable:  These are the variables defined inside a class. This data will be insensible to the outside of the class and can be accessed via member functions. These variables are called virtue of the object once an object is created.
  • 8. Member function :  These are the function clear inside a class and are used to admission object data. Inheritance:  When a class is defined by inheriting current function of a parent class then it is called inheritance. Here child class will receive all or few member functions and variables of a parent class.
  • 9. Parent class:  A class that is inborn from by another class. This is also called a base class or super class. Child class:  A class that receives from another class. This is also called a subclass or derived class.
  • 10. Polymorphism:  This is an object oriented idea where same function can be used for dissimilar purposes. For example function name will remain same but it take different number of clash and can do different task. Overloading:  A type of polymorphism in which some or all of operators have different implementations build upon on the types of their arguments. Build upon functions can also be overloaded with different implementation.
  • 11. Data Abstraction:  Any representation of data in which the implementation details are occult. Encapsulation:  Refers to a idea where we encapsulate all the data and member functions constant to form an object.
  • 12. Constructor:  Refers to a exceptional type of function which will be called spontaneously whenever there is an object formation from a class. Destructor:  Refers to a exceptional type of function which will be called spontaneously whenever an object is deleted or goes out of scope.
  • 13. PHP: Inheritance • Inheritance is a well-established programming principle. • Inheritance allows classes to form a hierarchy like a family tree. • Allows subclasses to share the techniques and belongings (which are public or protected) of its superclass. • Superclass is the parent class. • A subclass can add properties and methods. • Inheritance allows reusing code.
  • 15. INTERFACES:  An interface is a explanation of the actions that an entity can do.  Interface is written in the similar way as the class the statement with interface keyword.
  • 16. Rules of Interfaces: • All methods professed in an interface must be public; this is the nature of an interface. • All methods in the interface must be applied within a class; failure to do so will result in a fatal error. • The class applying the interface must use the exact same technique signatures as are defined in the interface • Interfaces can be prolonged like classes using the spreads operator.
  • 17. Abstract Classes:  An abstract class is a class that contains at least one abstract technique. The abstract technique is function declaration without anybody and it has the only name of the technique and its parameters.  There can be any number of techniques in the class and we have to announce the class as abstract only when there is an abstract method
  • 18. PHP: Interfaces • Provides methods to implement. • Derived classes may implement more than one interface. • Interfaces may succeed to from other interfaces using the extends keyword. • All techniques are supposed to be public in the interface definition can be defined explicitly as public or implicitly. • When a class equipment multiple interfaces there cannot be any naming collision between methods defined in the different interfaces.
  • 19. PHP: Object Cloning • Cloning is used to produce a copy of an object. • An entity copy is produced by using the clone keyword. • When an entity is cloned, PHP 5 will perform a shallow copy of all of the object's properties. • PHP affords a special method __clone to copy an object. • Once the cloning is complete, if a __clone() method is defined, then the newly created object's __clone() method will be called, to allow any necessary properties that need to be changed.