Question: Write the Python Program for the following question 3. (10 points) Design a class hierarchy to represent the following types of digital devices that will
Write the Python Program for the following question

3. (10 points) Design a class hierarchy to represent the following types of digital devices that will be sold on a new website. Smart Watches . Mobile Phones Desktops Laptops Each of these devices is described using: (a) Brand (b) Model (c) CPU speed (d) Memory Size In addition, each type has it's unique attributes: Smart Watches : watch size in mm, battery life (in days), color . Mobile Phones: screen size in inches, battery capacity (in mAh), color Desktops: Case Size (small/medium/Large), storage capacity Laptops: screen size in inches, battery capacity (in Wh), color, storage capacity Write a few lines of code to test your classes. 3. (10 points) Design a class hierarchy to represent the following types of digital devices that will be sold on a new website. Smart Watches . Mobile Phones Desktops Laptops Each of these devices is described using: (a) Brand (b) Model (c) CPU speed (d) Memory Size In addition, each type has it's unique attributes: Smart Watches : watch size in mm, battery life (in days), color . Mobile Phones: screen size in inches, battery capacity (in mAh), color Desktops: Case Size (small/medium/Large), storage capacity Laptops: screen size in inches, battery capacity (in Wh), color, storage capacity Write a few lines of code to test your classes
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
