8000 GitHub - FHU/cat-class-template
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

FHU/cat-class-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cat-class-template

Cat Class Lab
This is a group lab.

We created a Dog class together in class. In this lab, create a similar class, but for Cats.

Requirements

  1. The class should be created in the cat.py file
  2. The class should be called Cat.
  3. The class should have two attributes (variables): name with a default value of "Unknown" and age with a default value of 0.
  4. The class should have one method speak() that returns the string "Meow"
  5. Instantiate two objects of the class with the following attributes
  6. stella, with a name "Stella" and age 7
  7. garfield, with a name "Garfield" and age 50
  8. Call the method speak from both objects

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0