Computers and Technology

Assume the existence of an interface, actionlistener, with the following method : - actionperformed: void-returning, accepts noparameters define a class , guiapplication, that implements the above interface and has the following members: - an instance variable , doc, of type document - a constructor that accepts a document parameter used to initialize the instance variable - an implementation of the actionperformed method that invokes the method , save, with the document instance variable as the receiver and sends themessage "document saved" to system. out my code: public class guiapplication implements actionlistener{private document doc; public boolean save(){return true; }public guiapplication(document document){doc = document; }public void actionperformed() { doc. save(); system. out. println("document saved"); }}

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 13:50, mrfishyyyy
Explain how email technologies enable the exchange of messages between users. find out the typical parts of an email address and explain each part.
Answers: 1
image
Computers and Technology, 23.06.2019 16:30, rileysndr1782
Monica and her team have implemented is successfully in an organization. what factor leads to successful is implementation? good between different departments in an organization leads to successful is implementation.
Answers: 1
image
Computers and Technology, 24.06.2019 09:10, daedae11142
  to change the number of rows and columns displayed by the excel object a. select the object and drag a size handle on the active object. b. deselect the object and drag a size handle of the object. c. deselect the object and drag a row or column divider of the object. d. select the object and drag a row or column divider on the active object.
Answers: 2
image
Computers and Technology, 24.06.2019 17:40, HealTheWorld
Write a program that begins by reading in a series of positive integers on a single line of input and then computes and prints the product of those integers. integers are accepted and multiplied until the user enters an integer less than 1. this final number is not part of the product. then, the program prints the product. if the first entered number is negative or 0, the program must print β€œbad input.” and terminate immediately
Answers: 2
Do you know the correct answer?
Assume the existence of an interface, actionlistener, with the following method : - actionperformed...

Questions in other subjects:

Konu
Mathematics, 16.09.2019 16:30