-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMovie.java
60 lines (47 loc) · 1.4 KB
/
Movie.java
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
public class Movie extends Info{
private String director;
private String writer;
private String actors;
private int length;
public Movie(){}
public Movie(String name, String company, int year, String category, String director, String writer, String actors, int length, int copies, String type){
super(name,company,year,category,type,copies);
this.director = director;
this.writer = writer;
this.actors = actors;
this.length = length;
}
public void setDirector(String director){
this.director =director;
}
public void setWriter(String writer){
this.writer =writer;
}
public void setActors(String actors){
this.actors=actors;
}
public void setLength(int length){
this.length=length;
}
public String getDirector(){
return director;
}
public String getWriter(){
return writer;
}
public String getActors(){
return actors;
}
public int getLength(){
return length;
}
@Override
public String toString() {
return("\nMovie details: \n" +
super.toString() +
"\nDirector: " +getDirector() +
"\nWriter: " +getWriter() +
"\nActors: " +getActors() +
"\nLength: " +getLength());
}
}