Advertisement
Guest User

Program

a guest
Apr 12th, 2012
300
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.82 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.        
  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.     public String getTitle() {
  22.         return Title;
  23.     }
  24.  
  25.     public int getDuration() {
  26.         return Duration;
  27.     }
  28.  
  29.     public String getCategory() {
  30.         return Category;
  31.     }
  32.        
  33.         public String getSynopsis() {
  34.         return Synopsis;
  35.     }
  36.        
  37.         public String getActor() {
  38.         return Actor;
  39.     }
  40.  
  41.         public String getDirector() {
  42.         return Director;
  43.     }
  44.        
  45.         public Boolean getRentable() {
  46.         return rentable;  
  47.        
  48.    
  49.    
  50.  
  51. }
  52. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement