-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCirculo.java
52 lines (34 loc) · 871 Bytes
/
Circulo.java
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
public class Circulo {
private int raio;
Circulo (int raio) {};
double area ;
double circunf ;
public Circulo(int raio,double area, double circunf){
setRaio(raio);
setArea(area);
setCircunf(circunf);
}
public int getRaio() {
return this.raio;
}
public void setRaio(int raio) {
if (raio < 22) {
System.out.println("Alteracao nao realizada porque o raio deve ser maior!");
return;
}
this.raio = raio;
//this.raio = raio;
}
public double getArea() {
return this.area;
}
public void setArea(double area) {
this.area = area;
}
public double getCircunf() {
return this.circunf;
}
public void setCircunf(double circunf) {
this.circunf =circunf;
}
}