Computers and Technology

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.

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 08:00, luclaymom805
Aplan to budget time for studying and activities is referred to as a study routine. study habits. study skills. a study schedule.
Answers: 1
image
Computers and Technology, 22.06.2019 19:00, detrickboucicaut
The fourth generation of computers emerged between 1970s and 1980s. which technological advancement brought about this generation of computers? which computer architecture was used most in this generation?
Answers: 3
image
Computers and Technology, 23.06.2019 07:00, lin550
Why were most movies from the late 1890s until the early 1930s only filmed in black and white? there were only a few people who could afford the technology to produce color motion pictures back then. audiences did not want color motion pictures until later. the film used to make color motion pictures often overheated, which was a safety hazard, so it was generally not allowed. color films had to be hand-colored, frame by frame.
Answers: 3
image
Computers and Technology, 23.06.2019 13:00, dimondqueen511
Which one of the following voltages should never be measured directly with a vom? a. 1200 v b. 500 v c. 800 v d. 100v
Answers: 2
Do you know the correct answer?
The talk-a-lot cell phone company provides phone services for its customers. create an abstract clas...

Questions in other subjects: