Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Dental Assisting

Authors: Doni Bird, Debbie Robinson

13th Edition

978-0323624855, 0323624855

Students also viewed these Programming questions