© { JSL }
56
Text Box: Multiple Interfaces
Multiple Interfaces
·a class can implement many interfaces
wso can an interface
wso can a struct (boxing)
·no implements keyword
wnotation is positional
wbase class first, then base interfaces
class Violin
    : Instrument
    , IPluckable
    , ITuneable
{
    ...
}
IPluckable
« interface »
ITuneable
« interface »
Violin
« class »
Instrument
« class »