1. Create a python file with a class called "Mobile ()" which will allow us to create new mobile phone objects. 2. Each phone has 4 attributes: make model OS color 3. As there are many things a mobile phone can do create at least four methods the phone can do, examples can be receiving a call, playing a video etc...Within the methods, use print statements to reflect the actions. One Method should use more than one attribute in its print statement 4. Create a separate python file to call the Mobile() class and create at least 3 phone objects. 5. After creating the objects, let each phone perform at least two of the methods and print them on the screen 6. Add comments to both files to explain your process
1. Create a python file with a class called "Mobile ()" which will allow us to create new mobile phone objects.
2. Each phone has 4 attributes:
make
model
OS
color
3. As there are many things a mobile phone can do create at least four methods the phone can do, examples can be receiving a call, playing a video etc...Within the methods, use print statements to reflect the actions. One Method should use more than one attribute in its print statement
4. Create a separate python file to call the Mobile() class and create at least 3 phone objects.
5. After creating the objects, let each phone perform at least two of the methods and print
them on the screen
6. Add comments to both files to explain your process
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 3 images