+ 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-> ______;
32 odpowiedzi
+ 9
How bout this ..
Interface
implements
play()
+ 6
I think:
interface
extends
play()
+ 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.
+ 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. >.>
+ 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).
+ 2
Interface
implements
play()
+ 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 ????
+ 1
phew, my friend Google helped me out, the second blank is "implements"
+ 1
interface
implements
pay()
+ 1
interface MusicianInterface {
public function play();
}
class Guitarist
implements
MusicianInterface {
public function play() {
echo "La La La";
}
}
$obj = new Guitarist();
$obj->play();
0
@rowsej thank you so much for your suggestion... unfortunately "extends" doesn't work here :((
0
@Hatsy Rei, yes "burning through" would be a pretty accurate description!!!
0
Class guitarist implement interface musicianinterface
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()
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
}
}
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
}
}
0
Chidinma Akuegbu you answer: {
class
extends
0
I think it may be:
Interface
implements
play()
0
interface
implements
play()
is the correct answer
0
class
extends
play()