- 5

Fill in the blanks to define the Guitarist class that implements the MusicianInterface. Call the play() method on the Guitarist

tell me ans

26th Nov 2019, 2:17 PM
Rahul R
Rahul R - avatar
5 ответов
+ 5
interface MusicianInterface { public function play(); } class Guitarist implements MusicianInterface { public function play() { echo "La La La"; } } $obj = new Guitarist(); $obj->play();
25th Mar 2021, 5:22 PM
Mahnoor Shahzad
Mahnoor Shahzad - avatar
0
interface implements play()
9th Dec 2021, 10:03 AM
Benmar N. Sibonga
Benmar N. Sibonga - avatar
0
Correct ans: interface implements play() Final Code:--- interface MusicianInterface { public function play(); } class Guitarist implements MusicianInterface { public function play() { echo "La La La"; } } $obj = new Guitarist(); $obj->play();
3rd Jun 2022, 5:34 PM
Narayan Das
Narayan Das - avatar
- 1
If this was about a lesson; review the chapter, read comments in lesson. If that didn't help then post a question in Q&A, including information about which lesson, chapter and which quiz, as well as specifying the language in question tags Please follow this guide for posting a question in the future 👍 https://www.sololearn.com/Discuss/333866/?ref=app
26th Nov 2019, 2:36 PM
Ipang
- 1
interface implements play()
17th May 2022, 8:06 AM
Megha Raj kandel