Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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: 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
Step: 1
Heres the code for the Button interface Keyboard abstract class and Computer concrete class based on the given requirements Button interface public in...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started