+ 1

totally stuck!

hi I have to complete the PHP tutorial (and provide the certificate of completion) as part of a class which has nothing to do with my major, so it's a understatement to say it's tough for me!! I've got to the very final quiz, am on question 4/6 and I haven't got enough points left to unlock any more hints! Can anyone assist? "Fill in the blanks to define the Guitarist class that implements the MusicianInterface. Call the play() method on the Guitarist object." ________ MusicianInterface { public function play(); } class Guitarist ________ MusicianInterface { public function play() { echo "La La La"; } } $obj = new Guitarist(); $obj-> ______;

1st Feb 2019, 7:52 AM
Fortuna D'Uva Blondeau
Fortuna D'Uva Blondeau - avatar
31 Antworten
+ 9
How bout this .. Interface implements play()
13th Mar 2019, 7:14 AM
Anas Erfan
Anas Erfan - avatar
+ 6
I think: interface extends play()
1st Feb 2019, 8:13 AM
Rowsej
Rowsej - avatar
+ 5
@Hatsy Rei I'm doing a course in digital instructional/learning design, which requires us just to have basic understanding of html, css, js and now php. I'm not a programmer and don't intend to become one. I went through the course from the beginning (you can't skip quiz slides or levels if I'm not mistaken) but towards the end I needed a lot of help and used up all my credit. I've began the tutorials on html, css and js, and although the start is always well adapted to beginners, after a while the level is just too difficult for me personally.
1st Feb 2019, 9:36 AM
Fortuna D'Uva Blondeau
Fortuna D'Uva Blondeau - avatar
+ 3
I'm more concerned about this class which requires you to submit a Sololearn PHP certificate, which has nothing for do with your major. (What's your major tho) Anyway, the tutorials are supposed to be optimized for beginners who have no prior experience in programming. If you went through the course without skipping any slides, you might have been able to save a few unlocks. >.>
1st Feb 2019, 8:22 AM
Hatsy Rei
Hatsy Rei - avatar
+ 2
Fortuna D'Uva Blondeau I see. Maybe you were burning through the tutorials a little too quick (?), but that is understandable given your situation. I too fail to see why PHP is required if you don't intend to become a programmer (especially when JS is already introduced in the course you take).
1st Feb 2019, 10:53 AM
Hatsy Rei
Hatsy Rei - avatar
+ 2
Interface implements play()
3rd Jul 2019, 7:43 PM
Mame
Mame - avatar
+ 2
Fill in the blanks to declare a class Singer having a display method that outputs the name. Then, create an object of the class and call the display method. class Singer { public $name = "Ann"; public function display() { echo ???->name; } } $s = new Singer(); $s -> display(); please help me with the ????
19th Jul 2021, 10:03 PM
Dave Piotie
Dave Piotie - avatar
+ 1
phew, my friend Google helped me out, the second blank is "implements"
1st Feb 2019, 1:00 PM
Fortuna D'Uva Blondeau
Fortuna D'Uva Blondeau - avatar
+ 1
interface implements pay()
25th Jul 2019, 9:51 AM
amel guilouchi
amel guilouchi - avatar
+ 1
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:20 PM
Mahnoor Shahzad
Mahnoor Shahzad - avatar
0
@rowsej thank you so much for your suggestion... unfortunately "extends" doesn't work here :((
1st Feb 2019, 12:41 PM
Fortuna D'Uva Blondeau
Fortuna D'Uva Blondeau - avatar
0
@Hatsy Rei, yes "burning through" would be a pretty accurate description!!!
1st Feb 2019, 12:46 PM
Fortuna D'Uva Blondeau
Fortuna D'Uva Blondeau - avatar
0
Class guitarist implement interface musicianinterface
10th Sep 2019, 7:42 AM
Abhishek Tyagi
Abhishek Tyagi - avatar
0
fill in the blanks to define the guitarist class that implements the musicianlnterface. cell the play() method on the guitarist object. ANSWER:- 1. interface 2. extends 3. play()
26th May 2020, 7:48 PM
Shailesh Kumar meena
Shailesh Kumar meena - avatar
0
fill in the blanks to create a valid reducer function: _reducer(state,action){ _(action.type) { ANSWER:- function todoApp(state = initialState, action) { switch (action.type) { case SET_VISIBILITY_FILTER: return Object.assign({}, state, { visibilityFilter: action.filter }) default: return state } }
8th Jun 2020, 9:00 PM
Shailesh Kumar meena
Shailesh Kumar meena - avatar
0
rearrange the code to create a reducer handling the double action. ANSWER:- function counter(state = 0, action) { switch (action.type) { case 'INCREMENT': return state + 1 case 'DECREMENT': return state - 1 default: return state } }
8th Jun 2020, 9:03 PM
Shailesh Kumar meena
Shailesh Kumar meena - avatar
0
Chidinma Akuegbu you answer: { class extends
18th Jun 2020, 2:41 AM
Joynal Abdin
Joynal Abdin - avatar
0
I think it may be: Interface implements play()
18th Jun 2020, 3:02 AM
Joynal Abdin
Joynal Abdin - avatar
0
interface implements play() is the correct answer
28th Jul 2020, 11:52 AM
sonajosf
sonajosf - avatar
0
class extends play()
10th Sep 2020, 7:45 PM
Gipfizi David Mascoat
Gipfizi David Mascoat - avatar