-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTest.java
More file actions
38 lines (30 loc) · 1.43 KB
/
Copy pathTest.java
File metadata and controls
38 lines (30 loc) · 1.43 KB
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
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author thien
*/
public class Test {
public static void main(String[] args) {
PublishDay d1 = new PublishDay(15, 9, 2030);
PublishDay d2 = new PublishDay(4, 7, 2035);
PublishDay d3 = new PublishDay(4, 10, 2025);
BrandFilm bf1 = new BrandFilm("Đất Việt", "Việt Nam");
BrandFilm bf2 = new BrandFilm("Marvel", "Mỹ");
BrandFilm bf3 = new BrandFilm("DC comics", "Mỹ");
Film f1 = new Film("Trịnh và Em", 2020, bf1, 60000, d1);
Film f2 = new Film("Avengers", 2021, bf2, 65000, d2);
Film f3 = new Film("Batman", 2019, bf3, 50000, d3);
System.out.println("So sanh gia film 1 re hon film 3" + f1.checkTicketPriceCheaper(f3));
System.out.println("So sanh gia film 1 re hon film 2" + f1.checkTicketPriceCheaper(f2));
System.out.println("Ten hang phim 1 "+f1.printBrandName());
System.out.println("Ten hang phim 2 "+f2.printBrandName());
System.out.println("Ten hang phim 3 "+f3.printBrandName());
System.out.println("film 1 Gia sau khi giam 10%: "+f1.discount(10));
System.out.println("film 2 Gia sau khi giam 10%: "+f2.discount(10));
System.out.println("film 3 Gia sau khi giam 10%: "+f3.discount(10));
}
}