Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package animal_dog_puppey;
- public class Animal {
- private final String name;
- public Animal(String name) {
- this.name = name;
- }
- public String getName() {
- return name;
- }
- public void bite(){
- }
- public void voice(){
- }
- public void run(){
- }
- public void jump(){
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement