Interface IAnimal
This is basic interface of all animal.
Welcome to the Animal world!
Namespace: CatLibrary
Assembly: CatLibrary.dll
Syntax
public interface IAnimal
Remarks
THIS is remarks overridden in MARKDWON file
Properties
| Improve this Doc View SourceItem[Int32]
Return specific number animal's name.
Declaration
string this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
Int32 | index | Animal number. |
Property Value
Type | Description |
---|---|
String | Animal name. |
Name
Name of Animal.
Declaration
string Name { get; }
Property Value
Type | Description |
---|---|
String |
Methods
| Improve this Doc View SourceEat()
Animal's eat method.
Declaration
void Eat()
Eat(String)
Feed the animal with some food
Declaration
void Eat(string food)
Parameters
Type | Name | Description |
---|---|---|
String | food | Food to eat |
Eat<Tool>(Tool)
Overload method of eat. This define the animal eat by which tool.
Declaration
void Eat<Tool>(Tool tool)
where Tool : class
Parameters
Type | Name | Description |
---|---|---|
Tool | tool | Tool name. |
Type Parameters
Name | Description |
---|---|
Tool | It's a class type. |