12345678910111213141516171819202122 |
-
- /**
- * Abstract class Pet - write a description of the class here
- *
- * @author (your name here)
- * @version (version number or date here)
- */
- public abstract class Pet {
- protected String name;
-
- public void setName(String name) {
- this.name = name;
- }
-
- public String getName() {
- return name;
- }
-
- public abstract String speak();
-
- }
|