You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Movie.java 549B

1234567891011121314151617181920212223242526
  1. public class Movie {
  2. public static final int CHILDRENS = 2;
  3. public static final int REGULAR = 0;
  4. public static final int NEW_RELEASE = 1;
  5. private final String title;
  6. private int priceCode;
  7. public Movie( String title, int priceCode ) {
  8. this.title = title;
  9. this.priceCode = priceCode;
  10. }
  11. public String getTitle() {
  12. return title;
  13. }
  14. public int getPriceCode() {
  15. return priceCode;
  16. }
  17. public void setPriceCode( int priceCode ) {
  18. this.priceCode = priceCode;
  19. }
  20. }