컴파일러 오류 CS0500
업데이트: 2007년 11월
오류 메시지
'class member'은(는) abstract로 표시되어 있으므로 본문을 선언할 수 없습니다.
'class member' cannot declare a body because it is marked abstract
abstract 메서드에는 자체의 구현이 포함될 수 없습니다.
다음 샘플에서는 CS0500 오류가 발생하는 경우를 보여 줍니다.
// CS0500.cs
namespace x
{
abstract public class clx
{
abstract public void f(){} // CS0500
// try the following line instead
// abstract public void f();
}
public class cly
{
public static int Main()
{
return 0;
}
}
}