// ADD parts to the code below or ANSWER the questions.
using System;
// Interface
interface IAnimal
{
void animalSound(); // interface method (does not have a body)
// ADD a method 'eat() that has no return and no input parameters
void eat();
// ADD a property weight with a get and a set
double weight { get; set; }
}
// Pig "implements" the IAnimal interface
class Pig : IAnimal
// ADD the corresponding property for weight here
public double weight { get; set; }
public void animalSound()
// The body of animalSound() is provided here
Console.WriteLine("The pig says: wee wee");
public void eat()
Console.WriteLine("The pig eats a lot");
// ADD the matching method implementation for eat() that prints a message of your choice to the console
// QUESTION How should the eat method affect the weight property? Can you think of a better way of doing this?
// The eat method should in theory increae the weight property, this would need to be included in the parameters of the interface
public class Program
public static void Main()
Pig myPig = new Pig(); // Create a Pig object
myPig.animalSound();
myPig.eat();
// ADD test your new methods here