subject

Let's imagine that my_cell is an instance of class Apple_phone, your_cell is an instance of Android_phone and both Apple_phone and Android_phone inherit from a parent class Mobile_phone. Each one of the classes has a method Get_type() - an accessor that returns the type of the phone it is. Please write a program that creates my_cell, your_cell and calls Get_type() method on each. You should then print out "I am an apple" and "I am an android" in your main program. As you can probably guess, your classes have an attribute __type to keep track of the phone type.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 13:00
Which part of the cpu accepts data?
Answers: 1
question
Computers and Technology, 23.06.2019 04:20
Which network media uses different regions of the electromagnetic spectrum to transmit signals through air? uses different regions of the electromagnetic spectrum to transmit signals through air.
Answers: 2
question
Computers and Technology, 23.06.2019 04:31
Q14 what is most important for you to choose before you build a network? a. private network b. nos c. network media d. network protocol e. directory service
Answers: 1
question
Computers and Technology, 23.06.2019 14:30
Norder to receive financial aid at his vocational school, mario must fill out the fafsa. the fafsa is a form that must be completed to determine . in order to complete a fafsa, you must submit . the fafsa can students obtain
Answers: 2
You know the right answer?
Let's imagine that my_cell is an instance of class Apple_phone, your_cell is an instance of Android_...
Questions
question
Mathematics, 21.09.2019 05:10
question
Mathematics, 21.09.2019 05:10
question
Mathematics, 21.09.2019 05:10
question
Mathematics, 21.09.2019 05:10
Questions on the website: 13722360