Highlights
Task:
The goal of this assignment is to introduce two important concepts in Object Oriented Programming: inheritance and polymorphism. We will extend the classes from Assignment 1 by adding different classes of Musician, and have them perform by leveraging inheritance and polymorphism. We also learn encapsulation.
Every question is worth 5 marks.
0) Include a file “README.txt” in the folder assign2. For each question below, please document either
a) it works
b) tried some things but does not work / has errors, with possibly a brief description of the error
c) did not get to it.
This will help the TA to know where to look to give part marks, and provides 5 easy marks for you.
1) Open up Song.java. Make getters and setters for name and genre. Do the same for Musician.java and the name, numKnownSongs, and knownSongs (knownSongs is optional) member variables.
2) Still in Musician.java, make a “getter” for knownSongs called “public Song getSongAtIndex(int index)” that takes a int index as an argument. This method should return the Song at the specified index, or null if there is no Song at that index. If the index is larger than the array or less than zero it should also return null.
This IT Assignment has been solved by our IT Experts at My Uni Paper. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+ Students in Australia, UK & US by helping them to score HD in their academics.Our Experts are well trained to follow all marking rubrics & referencing style.
Be it a used or new solution, the quality of the work submitted by our assignment experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.
© Copyright 2026 My Uni Papers – Student Hustle Made Hassle Free. All rights reserved.