-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathArac.java
More file actions
37 lines (36 loc) · 832 Bytes
/
Copy pathArac.java
File metadata and controls
37 lines (36 loc) · 832 Bytes
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
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package lab1;
/**
*
*
*/
public class Arac {
private String sinif;
private int yapimYili;
public Arac(){
this.sinif = "Binek";
this.yapimYili = 2017;
}
public Arac(String sinif, int yapimYili){
this.sinif = sinif;
this.yapimYili = yapimYili;
}
public String getSinif(){
return this.sinif;
}
public int getYapimYili(){
return this.yapimYili;
}
public void setSinif(String sinif){
this.sinif = sinif;
}
public void setYapimYili(int yapimYili){
this.yapimYili = yapimYili;
}
public void ekranaYazdir(){
System.out.println("ARACIN SINIFI: " + this.sinif + " YAPIM YILI: " + this.yapimYili);
}
}