How can I have multiple implements in my model?
my current model is like this:
class Post extends Model implements ViewableContract
{
........
}
now i need to add implements Feedable
as well.
should i use comma in between or put them in brackets or what?
Yeah! you can use comma in between the ViewableContract and Feedable like this:
class Post extends Model implements ViewableContract, Feedable
{
.....
}
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments