C#
C#_인터페이스: 다중상속
S_pot
2021. 6. 4. 14:33
class Program
{
class Parent { }
class Child : Parent, IDisposable, IComparable // 한개의 클래스와 두 개의 인터페이스를 상속받습니다.
{
public int CompareTo(object obj) // IComparable 인터페이스 구현
{
throw new NotImplementedException();
}
public void Dispose() // IDispose 인터페이스 구현
{
throw new NotImplementedException();
}
}
static void Main(string[] args)
{
}
}