| Title | Animal Class Hierarchy |
| Catalog Type | SLCItem |
| Persistent ID | https://pawscomp2.sis.pitt.edu/pcex/index.html?lang=JAVA&set=inheritance.animals |
| Platform Name | PCEX |
| Features | — |
| Description | Suppose we have a class Animal and we want to extend it to produce class Dog. An animal has a name. A Dog has a name and an owner. Write the class declarations, the constructors, and the toString methods for these two classes.\n\nThe class AnimalTester1 tests these classes and their methods. |
| Keywords | inheritance |
| Author | Roya Hosseini |
| Institution | University of Pittsburgh |
| Iframe URL | https://pawscomp2.sis.pitt.edu/pcex/index.html?lang=JAVA&set=inheritance.animals |
| Protocol | PITT, HTML |
| Protocol URL | |
| License | MIT |
| Programming Language | Java |
| Natural Language | en |