Sale!

CMPS 258 WEEK 6 ASSIGNMENT solved

Original price was: $35.00.Current price is: $30.00.

Download Details:

  • Name: Assignment_5-00cko4.zip
  • Type: zip
  • Size: 433.95 KB

Category:

Description

5/5 - (9 votes)

You are provided with a main.cpp file that uses multiple inheritance in C++ to define a class
ScannerPrinter as a subclass of two classes Scanner and Printer. Re-implement these classes
in Java, but without using Java’s single inheritance. You may only use composition and interfaces. You are
provided with a Main.java file to implement your code in. The file includes a test case that is expected
to work for a correct solution. Do not modify the test case.
Assessment
Solutions should be:
 Correct
 In good style, including indentation and line breaks
 Written using features discussed in class
Submission Instructions
Submit your Main.java file via Moodle. Do not submit any other files or compressed folders.