update,
This commit is contained in:
9
_resources/it114105/itp4510/Lab01/Lab1.2/q2/Shape.java
Normal file
9
_resources/it114105/itp4510/Lab01/Lab1.2/q2/Shape.java
Normal file
@@ -0,0 +1,9 @@
|
||||
public abstract class Shape { // line 1
|
||||
private String name; // line 2
|
||||
|
||||
public Shape(String name) { // line 3
|
||||
this.name = name; // line 4
|
||||
}
|
||||
|
||||
public abstract double area(); // line 5
|
||||
}
|
Reference in New Issue
Block a user