79.6k views
1 vote
Question #5

Multiple Choice
Suppose this is your user-defined data type.
class player:
life = 3
magic = False
name = "
Which statement creates an instance of your data type?
O myPlayer = player()
O myPlayer.player()
O myPlayer = new player()
O myPlayer = player

User Polarblau
by
4.3k points

1 Answer

0 votes

Answer: myPlayer = player()

Explanation: correct edge answer 2020

User Larry Eitel
by
3.9k points