-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
32 lines (20 loc) · 859 Bytes
/
Main.java
File metadata and controls
32 lines (20 loc) · 859 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
package org.example;
public class Main {
public static void main(String[] args) {
Lule trendafil = new Lule("Kuqe", 15);
trendafil.printLule();
trendafil.setNgjyra("red");
System.out.println(trendafil.getNgjyra());
Makine audi = new Makine("Zi","Audi","A4",5,23000.4, "Personal");
System.out.println(audi.getKilometrat());
audi.ecenMeShpejtesi();
Person filanfisteku = new Person(12345678, "Filan", "Fisteku", "01-01-1990");
filanfisteku.ecenMeShpejtesi();
Avioni boeing = new Avioni("Bardhe","Boeing","707","Komercial");
boeing.ecenMeShpejtesi();
Dhome gjumi = new Dhome(50.5,6,"gjumi");
System.out.println( gjumi.getKati());
Phone samsung = new Phone("S25","Samsung",3, 1, 5000, "Android");
samsung.startDevice();
}
}