0
Fill in the blanks to define an interface IMusician with a declaration for the play() method. Then, define a Guitarist class tha
interface IMusician { public function play(); } class Guitarist implements IMusician { public function play() { echo "playin a guitar"; } }
9 Respostas
+ 4
interface
IMusician {
public function play();
}
class
Guitarist
implements
IMusician {
public function
play
() {
echo "playin a guitar";
}
}
0
interface
IMusician {
public function play();
}
class
Guitarist
implements
IMusician {
public function
play
() {
echo "playin a guitar";
}
}
0
interface
and
implements this question answer.
0
{, class, extends
0
Here is the solution:
interface
IMusician {
public function play();
}
class
Guitarist
implements
IMusician {
public function
play
() {
echo "playin a guitar";
}
}
0
https://www.youtube.com/channel/UC2TmzHkWeKpEXnYxRAHdjIQ
interface
class
implements
play
0
class , implements and play
- 1
interface and impliments
- 1
//interface IMusician {
public function play();
}
//class Guitarist //implements IMusician {
public function //play() {
echo "playin a guitar";
}
}
//answer