Can an object know what class list it’s in? /u/__R3v3nant__ Python Education

So I’m making a project with OOP and I need an object (a card) to be able to know what list it’s in.

As an example there could be 3 players and a deck and I need the card to know if it’s in one of the hands of the 3 players or in the deck, so is this possible? And if so how?

submitted by /u/__R3v3nant__
[link] [comments]

​r/learnpython So I’m making a project with OOP and I need an object (a card) to be able to know what list it’s in. As an example there could be 3 players and a deck and I need the card to know if it’s in one of the hands of the 3 players or in the deck, so is this possible? And if so how? submitted by /u/__R3v3nant__ [link] [comments] 

So I’m making a project with OOP and I need an object (a card) to be able to know what list it’s in.

As an example there could be 3 players and a deck and I need the card to know if it’s in one of the hands of the 3 players or in the deck, so is this possible? And if so how?

submitted by /u/__R3v3nant__
[link] [comments] 

Leave a Reply

Your email address will not be published. Required fields are marked *