İLERİ PROGRAMLAMA
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
public class Dikdörtgen {
private final int en;
private final int boy;
public Dikdörtgen() {
this.en = 1;
this.boy = 1;
}
public Dikdörtgen(int en, int boy) {
this.en = en;
this.boy = boy;
}
public int hesaplaAlan() {
return en * boy;
}
public int hesaplaÇevre() {
return 2 * (en + boy);
}
}
Yukarıdaki Java programında hangi satırda sınıf tanımlanmıştır?
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
public class Dikdörtgen {
private final int en;
private final int boy;
public Dikdörtgen() {
this.en = 1;
this.boy = 1;
}
public Dikdörtgen(int en, int boy) {
this.en = en;
this.boy = boy;
}
public int hesaplaAlan() {
return en * boy;
}
public int hesaplaÇevre() {
return 2 * (en + boy);
}
}
Yukarıdaki Java programında hangi satırda parametreler tanımlanmıştır?
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
public class Dikdörtgen {
private final int en;
private final int boy;
public Dikdörtgen() {
this.en = 1;
this.boy = 1;
}
public Dikdörtgen(int en, int boy) {
this.en = en;
this.boy = boy;
}
public int hesaplaAlan() {
return en * boy;
}
public int hesaplaÇevre() {
return 2 * (en + boy);
}
}
Yukarıdaki Java programında hangi satırda metot tanımlanmıştır?
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
public class Dikdörtgen {
private final int en;
private final int boy;
public Dikdörtgen() {
this.en = 1;
this.boy = 1;
}
public Dikdörtgen(int en, int boy) {
this.en = en;
this.boy = boy;
}
public int hesaplaAlan() {
return en * boy;
}
public int hesaplaÇevre() {
return 2 * (en + boy);
}
}
Yukarıdaki Java programında hangi satırda argüman listesi olan yaratıcı metot tanımlanmıştır?