Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public abstract class Program {
- String Title;
- int Duration;
- String Actor;
- String Director;
- String Category;
- String Synopsis;
- Boolean rentable;
- public Program(String title, int duration, String category)
- {
- this.Title = title;
- this.Duration = duration;
- this.Category = category;
- }
- public String getTitle() {
- return Title;
- }
- public int getDuration() {
- return Duration;
- }
- public String getCategory() {
- return Category;
- }
- public String getSynopsis() {
- return Synopsis;
- }
- public String getActor() {
- return Actor;
- }
- public String getDirector() {
- return Director;
- }
- public Boolean getRentable() {
- return rentable;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement