Advertisement
Guest User

Program

a guest
Apr 14th, 2012
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.93 KB | None | 0 0
  1.  
  2. public abstract class Program {
  3.  
  4.     String Title;
  5.     int Duration;
  6.    
  7.         String Actor;
  8.         String Director;
  9.     String Category;
  10.         String Synopsis;
  11.         Boolean rentable;
  12.         String rating;
  13.        
  14.     public Program(String title, int duration, String category)
  15.     {
  16.         this.Title = title;
  17.         this.Duration = duration;
  18.         this.Category = category;
  19.              
  20.     }
  21.  
  22.     public String getTitle() {
  23.         return Title;
  24.     }
  25.  
  26.     public int getDuration() {
  27.         return Duration;
  28.     }
  29.  
  30.     public String getCategory() {
  31.         return Category;
  32.     }
  33.      
  34.         public String getActor() {
  35.         return Actor;
  36.     }
  37.  
  38.         public String getDirector() {
  39.         return Director;
  40.     }
  41.        
  42.         public Boolean getRentable() {
  43.         return rentable;  }
  44.                
  45.         public String getSynopsis() {
  46.     return Synopsis;
  47.     }
  48.        
  49.          public String getRating() {
  50.         return rating;
  51.          }
  52.  
  53.  
  54. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement