Similarly, in C#, providing a body for an abstract method will result in a compilation error:
abstractclassAnimal{ // Abstract method declaration with a body (which is not allowed)publicabstractvoidMakeSound() {Console.WriteLine("Generic Animal Sound"); }}classDog:Animal{ // Compiler error: 'Dog' does not implement inherited abstract member 'Animal.MakeSound()'}