interface IRun
{
void run();
}
interface IFly
{
void fly();
}
public class MyCar : IRun, IFly // 인터페이스 다중상속 가능
{
public void run(){
// run~~
}
public void fly(){
// fly~~
}
}
출처: https://blog.soobinpark.com/23 [happy 빈이 라이프스토리]