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, 23.06.2019 01:30
Negative methods of behavior correction include all but this: sarcasm verbal abuse setting an example for proper behavior humiliation
Answers: 1
question
Computers and Technology, 23.06.2019 17:00
Companies that implement and apply an information system effectively can create
Answers: 1
question
Computers and Technology, 24.06.2019 00:20
The guy wire bd exerts on the telephone pole ac a force p directed along bd. knowing the p must have a 720-n component perpendicular to the pole ac, determine the magnitude of force p and its component along line ac.
Answers: 2
question
Computers and Technology, 24.06.2019 02:00
Which steps will open the system so that you can enter a question and do a search for
Answers: 1
You know the right answer?
The talk-a-lot cell phone company provides phone services for its customers. create an abstract clas...
Questions
question
Spanish, 20.09.2020 15:01
Questions on the website: 13722361