Skip to content

roboticengguseratvit/animal_oop_python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Animal Inheritance

This project implements a simple inheritance hierarchy with an Animal parent class and two child classes: Mammal and Bird.

Class Structure

  • Animal: Base class with name, age, and extinct attributes
  • Mammal: Inherits from Animal, adds colour attribute
  • Bird: Inherits from Animal, adds can_fly attribute

Usage

Run the main.py file to see examples:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages