update,
This commit is contained in:
13
_resources/it114105/itp4510/Lab01/Lab1.2/q3/Shape.java
Normal file
13
_resources/it114105/itp4510/Lab01/Lab1.2/q3/Shape.java
Normal file
@@ -0,0 +1,13 @@
|
||||
public abstract class Shape {
|
||||
protected String name;
|
||||
|
||||
public Shape(String n) {
|
||||
name = n;
|
||||
}
|
||||
|
||||
public abstract double getArea();
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user