Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 07ff7f4 + 6a69c2f commit 28fbdd9Copy full SHA for 28fbdd9
src/Main.java
@@ -1,18 +1,39 @@
1
class Shape {
2
String colour;
3
double area;
4
+
5
Shape(String colour) {
6
7
this.colour = colour;
8
}
9
10
+ Shape(String colour, double area) {
11
+ this.colour = colour;
12
+ this.area = area;
13
+ }
14
+<<<<<<< HEAD
15
Shape(String colour, double area) {
16
17
this.area = area;
18
19
+=======
20
21
+ Shape(double area){
22
+ this.area=area;
23
24
25
+>>>>>>> 6a69c2f26198bd230a5a8aa01188f299f6834402
26
Shape(Shape s1) {
27
this.colour = s1.colour;
28
this.area = s1.area;
29
30
31
void findArea() {
32
33
34
+ void findArea() {
35
36
37
38
39
0 commit comments