Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
executable file
·
63 lines (46 loc) · 826 Bytes

File metadata and controls

executable file
·
63 lines (46 loc) · 826 Bytes
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
package inheritance;
import java.awt.Color;
import java.awt.Graphics;
public class Shape {
private int[] x, y;
private int nVertices;
private Color color = Color.BLACK;
public Shape(int n) {
setNVertices(n);
setX(new int[n]);
setY(new int[n]);
}
public Shape(int[] x, int[] y, int n) {
this.x = x;
this.y = y;
nVertices = n;
}
public void draw(Graphics g) {
}
public void fill(Graphics g) {
}
public Color getColor() {
return color;
}
public void setColor(Color c) {
color = c;
}
public void setX(int[] x) {
this.x = x;
}
public int[] getX() {
return x;
}
public void setY(int[] y) {
this.y = y;
}
public int[] getY() {
return y;
}
public void setNVertices(int nVertices) {
this.nVertices = nVertices;
}
public int getNVertices() {
return nVertices;
}
}
Morty Proxy This is a proxified and sanitized view of the page, visit original site.