subject

The talk-a-lot cell phone company provides phone services for its customers. create an abstract class named phonecall that includes a string field for a phone number and a double field for the price of the call. also include a constructor that requires a phone number parameter and that sets the price to 0.0. include a set method for the price. also include three abstract get methods—one that returns the phone number, another that returns the price of the call, and a third that displays information about the call. create two child classes of phonecall: incomingphonecall and outgoingphonecall. the incomingphonecall constructor passes its phone number parameter to its parent’s constructor and sets the price of the call to 0.02. the method that displays the phone call information displays the phone number, the rate, and the price of the call (which is the same as the rate). the outgoingphonecall class includes an additional field that holds the time of the call in minutes. the constructor requires both a phone number and the time. the price is 0.04 per minute, and the display method shows the details of the call, including the phone number, the rate per minute, the number of minutes, and the total price. write an application that demonstrates you can instantiate and display both incomingphonecall and outgoingphonecall objects. save the files as phonecall. java, incomingphonecall. java, outgoingphonecall. java, and demophonecalls. java.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 02:30
Write a program that takes in 3 inputs [players (int type), expected game time (double type), team (char type)] and calculates actual game time (double) based on the following conditions: if the number of players or the expected game time is less than or equal to zero, it should output wrong input if the number of players is greater than 0 and less than or equal to 6 and if they are on the â€r’ or â€r’ team, their game time will be 10% faster. and if they are on the â€b’ or â€b’ team, their game time will be 15% faster. and if they are on the â€y’ or â€y’ team, their game time will be 20% faster. and if they are on any other team, they will play 0% faster. if the number of players is greater than 6 but less than or equal to 12 and if they are on the â€r’ or â€r’ team, their game time will be 20% faster. and if they are on the â€b’ or â€b’ team, their game time will be 25% faster. and if they are on the â€y’ or â€y’ team their game time will be 30% faster. and if they are on any other team, they will play 0% faster. if the number of players is greater than 12 but less than or equal to 18 and if they are on the â€r’ or â€r’ team, their game time will be 30% faster. and if they are on the â€b’ or â€b’ team, their game time will be 35% faster. and if they are on the â€y’ or â€y’ team, their game time will
Answers: 2
question
Computers and Technology, 23.06.2019 21:20
In microsoft word, when you highlight existing text you want to replace, you're in              a.  advanced mode.    b.  automatic mode.    c.  basic mode.    d.  typeover mode
Answers: 1
question
Computers and Technology, 23.06.2019 22:30
Jamie has to enter the names, employee id’s, and income of a group of employees into a worksheet. which option will jamie use to describe the data
Answers: 3
question
Computers and Technology, 24.06.2019 07:00
Jean has kept the content of her website limited to what is important; she has also ensured that the text follows a particular style and color all throughout her website. which website features has jean kept in mind? jean has limited the content of her website to what is important; this ensures (clarity, simplicity, harmony and unity) of the content. she has also formatted the text in a particular style and color throughout her website, ensuring (balance, simplicity, consistency)
Answers: 2
You know the right answer?
The talk-a-lot cell phone company provides phone services for its customers. create an abstract clas...
Questions
question
Mathematics, 22.04.2021 01:00
question
Mathematics, 22.04.2021 01:00
question
English, 22.04.2021 01:00
question
Mathematics, 22.04.2021 01:00
question
Mathematics, 22.04.2021 01:00
question
Spanish, 22.04.2021 01:00
question
Mathematics, 22.04.2021 01:00
question
Mathematics, 22.04.2021 01:00
Questions on the website: 13722367