Skip to content

ChristopherOkay/oop-animal-kingdom-model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

oop-animal-kingdom-model

Modeling the Animal kingdom as a class. Applying all four principles of OOP. The following sites are where I researched the information used in the development of this project

Usage

clone the repo and cd into the directory such that you are on oop-animal-kingdom-model To run the solution, make sure you have nodejs installed use the following command terminal

# run animal.js
node animal.js

Sample Output

  • If the animal.js is run successfully, the results would look like:

===============Displaying result for Tilapia=================

The tilapia has similar property as the Fish {
  movement: 'Active',
  canSexuallyReproduce: true,
  isHeterotrophic: true,
  respondToExternalStimuli: true,
  hasNotoChord: true,
  hasHollowNerveCord: true,
  hasPostAnalTail: true,
  numberOfEyes: 2,
  leaveUnderWater: true,
  hasFin: true
}
All Animals breath in Oxygen and Breath out Carbon di Oxide
This animal is also cold blooded
===============Displaying result for Toad=================

The toad has similar property as the Amphibian {
  movement: 'Active',
  canSexuallyReproduce: true,
  isHeterotrophic: true,
  respondToExternalStimuli: true,
  hasNotoChord: true,
  hasHollowNerveCord: true,
  hasPostAnalTail: true,
  numberOfEyes: 2,
  liveOnLand: true,
  liveUnderWater: true
}
All Animals breath in Oxygen and Breath out Carbon di Oxide
This animal is also cold blooded
===============Displaying result for Snake=================

The Snake has similar property as the Reptile {
  movement: 'Active',
  canSexuallyReproduce: true,
  isHeterotrophic: true,
  respondToExternalStimuli: true,
  hasNotoChord: true,
  hasHollowNerveCord: true,
  hasPostAnalTail: true,
  numberOfEyes: 2,
  canBask: true,
  scaleOnTheBody: true,
  skin: 'Dry'
}
All Animals breath in Oxygen and Breath out Carbon di Oxide
This animal is also cold blooded
===============Displaying result for Duck=================

The Duke has similar property as the Aves {
  movement: 'Active',
  canSexuallyReproduce: true,
  isHeterotrophic: true,
  respondToExternalStimuli: true,
  hasNotoChord: true,
  hasHollowNerveCord: true,
  hasPostAnalTail: true,
  numberOfEyes: 2,
  hasBeak: true,
  hasFeather: true,
  canChewFood: false
}
All Animals breath in Oxygen and Breath out Carbon di Oxide
This animal is also cold blooded
===============Displaying result for Human=================

The Human has similar property as the Mammal {
  movement: 'Active',
  canSexuallyReproduce: true,
  isHeterotrophic: true,
  respondToExternalStimuli: true,
  hasNotoChord: true,
  hasHollowNerveCord: true,
  hasPostAnalTail: true,
  numberOfEyes: 2,
  giveBirthAlive: true,
  growHair: true,
  breastFeed: true
}
All Animals breath in Oxygen and Breath out Carbon di Oxide
This animal is also cold blooded


About

Modeling the Animal kingdom as a class. Applying all four principles of OOP.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors