// 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");
// ADD the matching method implementation for eat() that prints a message of your choice to the console
public void eat() {
Console.WriteLine("Eating");
// QUESTION How should the eat method affect the weight property? Can you think of a better way of doing this?
// When you eat, it should increase the weight property. Instead of eat() returning nothing, it should be return double type and perform math on the weight.
public class Program
public static void Main()
Pig myPig = new Pig(); // Create a Pig object
myPig.animalSound();
// ADD test your new methods here
myPig.eat();