Ivan_Bochev

RockConcerts

Jun 17th, 2021 (edited)
809
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.92 KB | None | 0 0
  1. package c;
  2.  
  3. public class RockConcerts implements Concert {
  4.     private String band;
  5.     private String genre;
  6.     private double ticketPrice;
  7.     private int ticketCount;
  8.  
  9.     public RockConcerts(String band, String genre, double ticketPrice, int ticketCount) {
  10.         this.band = band;
  11.         this.genre = genre;
  12.         this.ticketPrice = ticketPrice;
  13.         this.ticketCount = ticketCount;
  14.     }
  15.  
  16.     public String getBand() {
  17.         return this.band;
  18.     }
  19.  
  20.     public void setBand(String band) {
  21.         this.band = band;
  22.     }
  23.  
  24.     public String getGenre() {
  25.         return this.genre;
  26.     }
  27.  
  28.     public void setGenre(String genre) {
  29.         this.genre = genre;
  30.     }
  31.  
  32.     public double getTicketPrice() {
  33.         return this.ticketPrice;
  34.     }
  35.  
  36.     public void setTicketPrice(double ticketPrice) {
  37.         this.ticketPrice = ticketPrice;
  38.     }
  39.  
  40.     public int getTicketCount() {
  41.         return this.ticketCount;
  42.     }
  43.  
  44.     public void setTicketCount(int ticketCount) {
  45.         this.ticketCount = ticketCount;
  46.     }
  47.  
  48. }
Add Comment
Please, Sign In to add comment