Starting from:

$29.99

WEEK 6 ASSIGNMENT Multiple inheritance

CMPS 258 – PROGRAMMING LANGUAGES 
WEEK 6 ASSIGNMENT
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.

More products