Show / Hide Table of Contents

    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 Source

    Item[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.

    | Improve this Doc View Source

    Name

    Name of Animal.

    Declaration
    string Name { get; }
    Property Value
    Type Description
    String

    Methods

    | Improve this Doc View Source

    Eat()

    Animal's eat method.

    Declaration
    void Eat()
    | Improve this Doc View Source

    Eat(String)

    Feed the animal with some food

    Declaration
    void Eat(string food)
    Parameters
    Type Name Description
    String food

    Food to eat

    | Improve this Doc View Source

    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.

    • Improve this Doc
    • View Source
    Back to top Generated by DocFX