Class Dog


class Dog extends Animal
Animal subclass that overrides speak() to bark.
  • Constructor Details

    • Dog

      Dog()
  • Method Details

    • speak

      void speak()
      Description copied from class: Animal
      Emits the generic animal sound.
      Overrides:
      speak in class Animal