Change Contents of the Bubble
Welcome to CS1315. Click on the python to add comments.

This page removed for FERPA compliance
View this PageEdit this PageUploads to this PageHistory of this PageHomeRecent ChangesSearchHelp Guide

Species of animals

class Animal:
  def showPleasure(self):
    pass

  def breathe(self):
    print "in out in out"

class Alligator(Animal):
  def bite(self):
    print "chomp chomp"

class Dog(Animal):
  def showPleasure(self):
    print "wag wag"
    print "lick lick"

class Cat(Animal):
  def showPleasure(self):
    print "miaow"
    print "rub rub"


Link to this Page