-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHp.java
More file actions
42 lines (35 loc) · 882 Bytes
/
Copy pathHp.java
File metadata and controls
42 lines (35 loc) · 882 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
38
39
40
41
42
public class Hp implements IBilgisayar {
private String Marka, Model, CPU;
private int Ram, Memory;
public Hp(String Marka, String Model, String CPU, int Ram, int Memory) {
this.Marka = Marka;
this.Model = Model;
this.CPU = CPU;
this.Ram = Ram;
this.Memory = Memory;
}
@Override
public String Marka() {
return Marka;
}
@Override
public String Model() {
return Model;
}
@Override
public String CPU() {
return CPU;
}
@Override
public int Ram() {
return Ram;
}
@Override
public int Memory() {
return Memory;
}
@Override
public void Ozellikler() {
System.out.println("-----------\nMarka=" + Marka + "\nModel='" + Model + "\nIslemci=" + CPU + "\nRam=" + Ram + "\nBellek=" + Memory + "\n-----------");
}
}