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

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter4: More Object Concepts
Section: Chapter Questions
Problem 2PE
icon
Related questions
Question

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 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Unreferenced Objects
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT