Question: Mini Exercise 3: Create the following Java classes and/or interfaces Button Keyboard Computer Button interface: 5 marks 1} 2} 3} 4} Create an interface named

 Mini Exercise 3: Create the following Java classes and/or interfaces Button

Mini Exercise 3: Create the following Java classes and/or interfaces Button Keyboard Computer Button interface: 5 marks 1} 2} 3} 4} Create an interface named Button (1 mark) Code two constant values (2 marks) Code two methods (2 marks) 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} 2} 3} Create an abstract class named Keyboard (1 mark) In the abstract class, code two (2) of the items below a} insta nce variables (2 marks) b} concrete methods (2 marks) c} abstract methods (2 marks) d} constructors (2 marks) 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} 2} 3} 4} Create concrete class named Computer Base this class on the abstract Keyboard class (1 mark) This class is to implement the Button interface (1 mark) a} Complete the interface and abstract method bodies (2 x 2 marks) Be creative while coding. Unrelated or inapplicable entities will not count. a} E.G., do not code myMethod(} or myValue Marking Please submit all .java source files on Blackboard when you are finished. Name the package however you desire

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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!