lab7
This commit is contained in:
13
test/Orange.java
Normal file
13
test/Orange.java
Normal file
@ -0,0 +1,13 @@
|
||||
public class Orange extends Cat
|
||||
{
|
||||
private int weight = 5;
|
||||
|
||||
|
||||
public Orange (String name) {
|
||||
super(name, "Orange");
|
||||
}
|
||||
|
||||
public int Weight() {
|
||||
return weight;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user