IAnimal.Eat Method

Definition

Overloads

Eat()

Animal's eat method.

Eat(String)

Feed the animal with some food

Eat<Tool>(Tool)

Overload method of eat. This define the animal eat by which tool.

Eat()

Animal's eat method.

public void Eat ();

Applies to

Eat(String)

Feed the animal with some food

public void Eat (string food);

Parameters

food
String

Food to eat

Applies to

Eat<Tool>(Tool)

Overload method of eat. This define the animal eat by which tool.

public void Eat<Tool> (Tool tool) where Tool : class;

Type Parameters

Tool

It's a class type.

Parameters

tool
Tool

Tool name.

Applies to