CMPS 258 – PROGRAMMING LANGUAGES WEEK 6 ASSIGNMENT solution

$29.99

Original Work ?
Category: You will Instantly receive a download link for .ZIP solution file upon Payment

Description

5/5 - (6 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.