ICat Interface

Definition

Cat's interface

public interface ICat : CatLibrary.IAnimal
Derived
CatLibrary.Cat<T,K>
Implements

Properties

Item[Int32]

Return specific number animal's name.

(Inherited from IAnimal)
Name

Name of Animal.

(Inherited from IAnimal)

Methods

Eat()

Animal's eat method.

(Inherited from IAnimal)
Eat(String)

Feed the animal with some food

(Inherited from IAnimal)
Eat<Tool>(Tool)

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

(Inherited from IAnimal)

Events

eat

eat event of cat. Every cat must implement this event.

Extension Methods

Play(ICat, String)

Extension method to let cat play

Sleep(ICat, Int64)

Extension method hint that how long the cat can sleep.

Applies to