Imitation and polymorphism python

May 9, 2022
Reaction score
Create a base class BOARD GAME (name to be specified). Create derivative classes CHESS (set the weight of each of the 32 pieces of 6 types, the weight of the game board size 8x8) and DOMINO (set the weight of each of the 28 similar pieces, the weight of the storage box). For the given examples of different sets of board games, sort them by descending weight and calculate the total weight of all sets and separately for each of the derived classes. To check, use the steps in the list to place objects of different derived classes.


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question