Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Animal {
- String name;
- int legs;
- public Animal(String name, int legs){
- this.name = name;
- this.legs = legs;
- }
- String getName() {
- return name;
- }
- int getLegs() {
- return legs;
- }
- String getNoise() {
- return "";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement