Guest User

Untitled

a guest
Jun 17th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.52 KB | None | 0 0
  1. public class Movie
  2. {
  3.    public static final int CHILDREN = 2;
  4.    public static final int REGULAR = 0;
  5.    public static final int NEW_REALEASE = 1;
  6.  
  7.    private String _title;
  8.    private int _priceCode;
  9.  
  10.    public Movie(String title, int priceCode)
  11.    {
  12.       _title = title;
  13.       _priceCode = priceCode;
  14.    }
  15.  
  16.    public int getPriceCode()
  17.    {
  18.       return _priceCode;
  19.    }
  20.  
  21.    public void setPriceCode(int arg)
  22.    {
  23.       _priceCode = arg;
  24.    }
  25.  
  26.    public String getTitle()
  27.    {
  28.       return _title;
  29.    }
  30. }
Add Comment
Please, Sign In to add comment