Question: Create the following Java classes and/or interfaces Button Keyboard Computer Button Interface: 5 marks 1) Create an interface named Button (1 mark) 2) Code

Create the following Java classes and/or interfaces Button Keyboard Computer Button Interface: 

Create the following Java classes and/or interfaces Button Keyboard Computer Button Interface: 5 marks 1) Create an interface named Button (1 mark) 2) Code two constant values (2 marks) 3) Code two methods (2 marks) 4) Be creative while coding. Unrelated or inapplicable entities will not count. a) E.G., do not code myMethod() or myValue Keyboard Abstract Class: 9 marks 1) Create an abstract class named Keyboard (1 mark) 2) In the abstract class, code two (2) of the items below a) instance variables (2 marks) b) concrete methods (2 marks) c) abstract methods (2 marks) d) constructors (2 marks) 3) Be creative while coding. Unrelated or inapplicable entities will not count. a) E.G., do not code myMethod() or myValue Computer Class: 6 marks 1) Create concrete class named Computer 2) Base this class on the abstract Keyboard class (1 mark) 3) This class is to implement the Button interface (1 mark) a) Complete the interface method bodies (2 x 2 marks) 4) Be creative while coding. Unrelated or inapplicable entities will not count. a) E.G., do not code myMethod() or myValue

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Heres the code for the Button interface Keyboard abstract class and Computer concrete class based on the given requirements Button interface public in... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!