Question: Exercise 7 . 2 : First Class A class contains variables and methods, for the class PlayingCard do just 3 things: Declare a private variable
Exercise :First Class
A class contains variables and methods, for the class PlayingCard do just things:
Declare a private variableproperty named$thecard
Write a public method namedgetthecardthat returns the value of the variableproperty
Write a public method namedsetthecardthat has one parameter, and changes the value of the variableproperty Use any legal PHP variable name for the parameter.
You need to complete class PlayingCard below. DO NOT create an object or call the methods, I will do that.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
