IAnimal
in
An interface for the behaviors and properties of animals.
Tags
Table of Contents
Methods
- getAge() : float
- age of dog in years
- getName() : string
- name of the animal, like 'Fluffy'
- getSound() : string
- the sound that the animal makes
- getType() : string
- type of the animal, like cat, alligator, tiger
Methods
getAge()
age of dog in years
public
getAge() : float
Return values
floatgetName()
name of the animal, like 'Fluffy'
public
getName() : string
Return values
stringgetSound()
the sound that the animal makes
public
getSound() : string
Return values
stringgetType()
type of the animal, like cat, alligator, tiger
public
getType() : string