OOP – Inheritance – Q&A

Question 1[2 marks]

What code would you write to instantiate one new MP3 object called topTrack for the lastest 3 minutes 12 seconds song “Shivers” from Ed Sheeran?




Question 2[4 marks]

What are all the methods and properties of the MP3 class?




Question 3[4 marks]

Explain, using an example from this code, what is meant by inheritance?





Save / Share Answers as a link

Share Button
Tagged with: , ,