Westonci.ca is your go-to source for answers, with a community ready to provide accurate and timely information. Get quick and reliable solutions to your questions from a community of seasoned experts on our user-friendly platform. Explore comprehensive solutions to your questions from a wide range of professionals on our user-friendly platform.

Please please help I don’t understand this please.

Please Please Help I Dont Understand This Please class=

Sagot :

tonb

Answer:

first the class declaration (the bit with class player)

then the object creation (myPlayer = player())

then assigning a value to a property (myPlayer.life=4)

Explanation:

You have to declare the class before you can use it.

You have to create an object before you can access its members.

Unclear why in the exercise second and first are swapped...?