Question: deduce the php function to add a last name smith to person 2 using the oop approach Person 1: Person Object ( [_name:private] => Tom
deduce the php function to add a last name smith to person 2 using the oop approach
Person 1: Person Object
(
[_name:private] => Tom
[_job:private] => Button-Pusher
[_age:private] => 34
)
Person 2: Person Object
(
[_name:private] => John
[_job:private] => Lever Puller
[_age:private] => 41
)
Person 1: Person Object
(
[_name:private] => Tom
[_job:private] => Box-Mover
[_age:private] => 35
)
Person 2: Person Object
(
[_name:private] => John
[_job:private] => Lever Puller
[_age:private] => 42
)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
